-
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
Feature/mip 424 #22
Feature/mip 424 #22
Conversation
RuleViolation rv2 = violations.find { it.fileName.contains('bad-global-with-listener.xml')} | ||
rv2 != null | ||
rv2.lineNumber == 10 | ||
rv2.message.contains('listener-config') |
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 like this.
violations.size() == 2 | ||
violations[0].lineNumber == 23 | ||
violations[0].fileName.contains('on-error-logging-exception.xml') | ||
violations[1].lineNumber == 69 |
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 we add check for message here.
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.
Like-> OnErrorLogExceptionRule.RULE_VIOLATION_MESSAGE
violations.size() == 2 | ||
violations[0].lineNumber == 23 | ||
violations[0].fileName.contains('on-error-logging-exception.xml') | ||
violations[1].lineNumber == 69 |
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.
Like-> OnErrorLogExceptionRule.RULE_VIOLATION_MESSAGE
Added Rule and Test