-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Overwrite Rule Properties Without Excluding the Rule #664
base: master
Are you sure you want to change the base?
Conversation
…ining a completely new rule
Hi thanks, I like this feature a lot. I fixed the PHP 5.3 compatibility in your PR (please pull the change). Could you now add a unit test for that? And it would be perfect to add a note about this in https://github.com/phpmd/phpmd/blob/master/src/site/rst/documentation/creating-a-ruleset.rst So other users will know this exists. |
hi Kyle, yeah sure - I've added two (simple) tests and also wrote a paragraph about how this feature works. |
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.
Very nice!
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.
Noice
@ravage84 A last word on this before merging? |
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.
If I understand this PR correctly, it adds the possibility to overwrite the properties of rules without excluding them, once they are added through a rule set, correct?
fixed errors from copy/paste in test rulesets added description to test ruleset to say what's going on
extract searching for a rule to a method improve/modify comments for added methods
9ffdc82
absolutely correct ;-) |
@ravage84 |
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.
It's alright for me.
I fixed the test to make it check what it intended to and sadly it fails (0 instead of 42 in test1 property). |
I checked, It's just a problem with the test. The feature works properly with the example given in the new documentation. |
Test fixed. It was a naming problem: RuleOneInThirdRuleSet instead of RuleOneInFifthRuleSet as it refers to the set3.xml. |
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.
@tis-dm-webfactory I'm realizing that this is an old PR. Are you able to rebase it to handle the conflicts and let it run the tests with the GitHub actions? |
Add possibility to modify rule properties via config file without defining a completely new rule like this:
Fix #39