Skip to content
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

Merged
merged 26 commits into from
Aug 31, 2023

Conversation

dileepkumarv-avio
Copy link
Contributor

Updated linter implementation to generate effective-pom for parsing pom.xml.

And, updated existing test case to handle scenarios with effective-pom

@dileepkumarv-avio dileepkumarv-avio requested a review from a team as a code owner August 30, 2023 20:24
@dileepkumarv-avio dileepkumarv-avio linked an issue Aug 30, 2023 that may be closed by this pull request
Copy link
Contributor

@adesjardin adesjardin left a 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!

Comment on lines 49 to 50
violations[0].lineNumber == 2
violations[0].fileName.endsWith('pom.xml')
violations[0].rule.ruleId == MuleArtifactMinMuleVersionRule.RULE_ID
Copy link
Contributor

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')
Copy link
Contributor

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
@dileepkumarv-avio dileepkumarv-avio requested review from neckron, TimGonz-AVIO and a team August 31, 2023 13:31
@dileepkumarv-avio dileepkumarv-avio merged commit 3b09fd3 into main Aug 31, 2023
@dileepkumarv-avio dileepkumarv-avio deleted the feat/improve-parsing-for-pom-xml branch August 31, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve parsing for pom.xml to reference parent-pom.
2 participants