Skip to content

Commit

Permalink
Update checkstyle (#301)
Browse files Browse the repository at this point in the history
- Check if a whitespace is followed when doing '//' comments
- update checkstyle dependency which is last java 8 compatible one
  • Loading branch information
dr0i committed Jun 26, 2023
1 parent 48ee14b commit 9dcbd46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ subprojects {
}

checkstyle {
toolVersion '8.44'
toolVersion '9.3' //8.44'
}

tasks.withType(JavaCompile) {
Expand Down
3 changes: 3 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MagicNumber"/>
<module name="MatchXpath">
<property name="query" value="//SINGLE_LINE_COMMENT[./COMMENT_CONTENT[not(starts-with (@text, ' '))]]" />
</module>
<module name="MemberName"/>
<module name="MethodLength"/>
<module name="MethodName"/>
Expand Down

0 comments on commit 9dcbd46

Please sign in to comment.