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/checkstyle max allowed violations #780
Feature/checkstyle max allowed violations #780
Conversation
… the maximum number of code violations that are tolerated before breaking the build or setting the invoked ANT task failure property.
Update the Contribution Guideline URL in PR template
This is closely related to https://issues.gradle.org/browse/GRADLE-2888 (which is broader, but covers this particular point) As per that discussion, I would suggest renaming the new property from
|
No problem. I have no objections renaming the public property to maxErrors. After reading GRADLE-2888, it seems some people are interested in exposing Regards, On 1 November 2016 at 23:25, Juan Martín Sotuyo Dodero <
|
…' so as to match the already existing Checkstyle property, and therefore be more intuitive to Checkstyle users.
…ets the maximum number of warnings that are tolerated before breaking the build or setting the invoked ANT task failure property.
Awesome that you could add |
Good point. I will set the default value for maxWarnings explicitly to Regards, On 22 November 2016 at 02:43, Juan Martín Sotuyo Dodero <
|
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.
@alex-arana Thank you very much for contributing to Gradle! Changes generally look good, with one required change I will make. I'm going to wait for this to pass our CI pipeline before approving.
* | ||
* @return the maximum number of errors allowed | ||
*/ | ||
@Console |
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.
These properties should be used for UP-TO-DATE
checking because they affect the build outcome and so should be annotated @Input
* | ||
* @return the maximum number of warnings allowed | ||
*/ | ||
@Console |
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.
Same as getMaxErrors()
@alex-arana This has been merged with e6b5c85..f4b9769 — thank you for contributing! |
Any of the checked boxes below indicate that I took action:
./gradlew quickCheck
For all non-trivial changes that modify the behavior or public API:
the forum or can reference a JIRA issue.
brief but explains the use case or problem you are trying to solve,
touches on the planned implementation approach as well as the test cases
that verify the behavior. Optimally, design documents should be submitted
as a separate pull request. Samples
can be found in the Gradle GitHub repository. Please let us know if you need help with
creating the design document. We are happy to help!
test coverage to verify the behavior. Before submitting the pull request
I ran a build on your local machine via the command
./gradlew quickCheck <impacted-subproject>:check
.DSL reference and Javadocs where applicable.