-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fix: Adjust checkstyle config for new version #1409
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: fix | ||
fix: | ||
description: Fix checkstyle config to conform to breaks made between 8.13 and 8.33 | ||
links: | ||
- https://github.com/palantir/gradle-baseline/pull/1409 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,10 @@ | |
<module name="BeforeExecutionExclusionFileFilter"> | ||
<property name="fileNamePattern" value="module\-info\.java$"/> | ||
</module> | ||
<module name="LineLength"> <!-- Java Style Guide: No line-wrapping --> | ||
<property name="max" value="120"/> | ||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> | ||
</module> | ||
<module name="TreeWalker"> | ||
<module name="SuppressionCommentFilter"/> <!-- baseline-gradle: README.md --> | ||
<module name="SuppressionCommentFilter"> | ||
|
@@ -198,10 +202,6 @@ | |
</module> | ||
<module name="InnerAssignment"/> <!-- Java Coding Guidelines: Inner assignments: Not used --> | ||
<module name="LeftCurly"/> <!-- Java Style Guide: Nonempty blocks: K & R style --> | ||
<module name="LineLength"> <!-- Java Style Guide: No line-wrapping --> | ||
<property name="max" value="120"/> | ||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> | ||
</module> | ||
<module name="MemberName"> <!-- Java Style Guide: Non-constant field names --> | ||
<property name="format" value="^[a-z][a-zA-Z0-9]+$"/> | ||
<message key="name.invalidPattern" value="Member name ''{0}'' must match pattern ''{1}''."/> | ||
|
@@ -374,11 +374,11 @@ | |
</module> | ||
<module name="RightCurly"> <!-- Java Style Guide: Nonempty blocks: K & R style --> | ||
<property name="option" value="same"/> | ||
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/> | ||
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is very weird - this didn't use to complain with checkstyle 8.13 on codebases I tried but with 8.33 this fails. I would be tempted to just ditch this since palantir-java-format is the autoritative source. I have made this setting conform to what palantir-java-format generates. |
||
</module> | ||
<module name="RightCurly"> <!-- Java Style Guide: Nonempty blocks: K & R style --> | ||
<property name="option" value="alone"/> | ||
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/> | ||
<property name="tokens" value="LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/> | ||
</module> | ||
<module name="SeparatorWrap"> <!-- Java Style Guide: Where to break --> | ||
<property name="tokens" value="DOT"/> | ||
|
@@ -431,11 +431,8 @@ | |
<module name="JavadocMethod"> <!-- Java Style Guide: Where Javadoc is used --> | ||
<property name="scope" value="public"/> | ||
<property name="allowMissingParamTags" value="true"/> | ||
<property name="allowMissingThrowsTags" value="true"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changes here are because javadoc check got split into two, this and |
||
<property name="allowMissingReturnTag" value="true"/> | ||
<property name="minLineCount" value="99999999"/> | ||
<property name="allowedAnnotations" value="Override, Test"/> | ||
<property name="allowThrowsTagsForSubclasses" value="true"/> | ||
</module> | ||
<module name="JavadocStyle"/> <!-- Java Style Guide: Javadoc --> | ||
<module name="JavadocTagContinuationIndentation"> <!-- Java Style Guide: At-clauses --> | ||
|
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 was mentioned in the changes it's just hard to decipher things from their long list of changes