-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add processAllRules option. #56
Add processAllRules option. #56
Conversation
@@ -199,6 +220,11 @@ public static Rules fromConfig(Config config) { | |||
displayMaterialChanges = config.getBoolean("displayMaterialChanges"); | |||
} | |||
|
|||
boolean processAllRules = false; | |||
if (config.hasPath("processAllRules")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate to say this, but can you please switch to -
based convention for the config name? I wanted to do the same for displayMaterialChanges
as well. Pretty please!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, no problem, I will do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 391fd0c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a unit test case for more than 1 matching rule in RulesTest
?
Build failed because of a configuration issue. Fixed that re-triggered it. |
I totally thought I did that but apparently I dreamed it. Added a test in 735a74e. |
Thanks @ashwanthkumar, I will totally update the README and docs, thanks! |
Ok, docs and README updated in 0bbc459. |
Thanks @jdavisp3 |
This PR adds a
processAllRules
option. It is optional and if not specified orFalse
the rules are processed as now. IfTrue
, instead of stopping at the first matching rule, all rules are processed and all matching rules will be applied.Fixes #52. Fixes #19.