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

MIP-414 PR #24

Merged
merged 2 commits into from
Jul 14, 2020
Merged

MIP-414 PR #24

merged 2 commits into from
Jul 14, 2020

Conversation

kkingavio
Copy link
Contributor

Sorry for number of files changed...

MunitMavenPlugin Attributes Rules...

Added rule, tests... Moved MuleXmlParser to different package, renamed PomProperty to PomElement

}

/*
<plugin>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to keep a sample in here put it in a groovydoc on the class

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

private GPathResult getPomProperties() {
return pomXml[PROPERTIES] as GPathResult
}

@SuppressWarnings('DuplicateStringLiteral')
private String getPropertyValueFromVariable(String variable) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't used anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, removed

if (plugin != null) {
coverageAttributeMap.each { key, val ->
PomElement pe = plugin.getConfigProperty(key)
if (pe == null || pe.value != val) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use pe?.value to simplify

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

//@Override
//List<RuleViolation> execute(Application application) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kkingavio kkingavio requested a review from adesjardin July 14, 2020 19:59
@kkingavio kkingavio merged commit 3143bdb into develop Jul 14, 2020
@kkingavio kkingavio deleted the feature/MIP-414 branch July 14, 2020 21:53
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.

2 participants