-
Notifications
You must be signed in to change notification settings - Fork 26
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
Enable checkstyle failOnViolation
#483
Conversation
Something isn't right, I still can't get it to fail locally at commit jenkinsci/prism-api-plugin@66dcb92 |
@@ -331,12 +331,14 @@ | |||
<goals> | |||
<goal>checkstyle</goal> | |||
</goals> | |||
<phase>verify</phase> | |||
<phase>validate</phase> |
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.
not sure whether to keep here or not, but waiting for unit test suite for linting is not great
<failOnViolation>false</failOnViolation> | ||
<violationSeverity>warning</violationSeverity> | ||
<failOnViolation>true</failOnViolation> | ||
<consoleOutput>true</consoleOutput> |
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 makes the errors go to build log
</execution> | ||
</executions> | ||
<configuration> | ||
<linkXRef>false</linkXRef> | ||
<failOnViolation>false</failOnViolation> | ||
<violationSeverity>warning</violationSeverity> | ||
<failOnViolation>true</failOnViolation> |
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 the default and can be removed once working
</execution> | ||
</executions> | ||
<configuration> | ||
<linkXRef>false</linkXRef> | ||
<failOnViolation>false</failOnViolation> | ||
<violationSeverity>warning</violationSeverity> |
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 causing the build to fail locally at jenkinsci/prism-api-plugin@66dcb92 but it doesn't seem to be 😢
Replaced by #907 |
Context jenkinsci/prism-api-plugin#41 (comment)