-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: Updated linter implementation to generate effective-pom for parsing pom.xml #158
Conversation
…sing pom.xml Updated linter implementation to generate effective-pom for parsing pom.xml. And, updated existing test case to handle scenarios with effective-pom
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.
Just 2 minor things, otherwise looks great. Very good updates to the existing rules while fixing them!
violations[0].lineNumber == 2 | ||
violations[0].fileName.endsWith('pom.xml') | ||
violations[0].rule.ruleId == MuleArtifactMinMuleVersionRule.RULE_ID |
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 this rule referenced the pom wouldn't its line number now be 0 as well like the other pom rules you changed?
@@ -35,17 +35,17 @@ class PomArtifactAttributeRuleTest extends Specification { | |||
|
|||
then: | |||
violations.size() == 1 | |||
violations[0].fileName.contains('pom.xml') | |||
// violations[0].fileName.contains('pom.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.
This should be removed if not used, not commented
Fixed review comments - 1. Removed commented code. 2. Updated the filename in MULE_ARTIFACT_MIN_MULE_VERSION rule violation to return mule-artifact.json file
Updated linter implementation to generate effective-pom for parsing pom.xml.
And, updated existing test case to handle scenarios with effective-pom