You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the usage of RefactoringMiner, I found a refactoring case using conditional expression transformation that can’t be detected. Could it possibly be supported in the future maybe?
@simpt5
The corresponding if statements are actually matched. I am not sure if this is a refactoring type.
It can be considered as Simplifying Boolean Expressions
Yes, it is actually can be treated as a boolean expression transformation, which transform boolean expression using some rules without changing the program behaviors. It is indeed not a typical refactoring type as others. Since those transformations are based on rules and performed on the boolean expression, I am wondering if those could be detected (if it is worth to detect) using some strategies?
@simpt5
It is definitely possible to implement this in RefactoringMiner and get it reported with a new refactoring type Simplify Boolean Expression.
I can add it as a new feature request.
Tested tools and version:
Refactoring Aware Commit Review Chrome Extension (Version: 2.0.4).
RefactoringMiner (Version 3.0.4) maven dependency.
Description:
During the usage of RefactoringMiner, I found a refactoring case using conditional expression transformation that can’t be detected. Could it possibly be supported in the future maybe?
Commit URL: dromara/hutool@1d4ac7d
File URL: dromara/hutool@1d4ac7d#diff-e9a28972da0c69b8a3c84ac4d14c9c911bb58f552aef78049f00909468cbf1be
The following refactoring for conditional expression in the above commit can’t be detected.
The text was updated successfully, but these errors were encountered: