Skip to content

Commit

Permalink
Upgrade Checkstyle to 10.2
Browse files Browse the repository at this point in the history
The latest version of Checkstyle is 10.2. At the same time, the scope
property in JavadocMethod was replaced with accessModifiers in
Checkstyle 8.42.

Let's upgrade Checkstyle and change scope to accessModifiers.
  • Loading branch information
yhtMinceraft1010X authored and damithc committed Jul 19, 2022
1 parent 1fde5d7 commit 538483c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

checkstyle {
toolVersion = '8.29'
toolVersion = '10.2'
}

test {
Expand Down
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<!-- Checks that every public method (excluding getters, setters and constructors) has a header comment. -->
<module name="JavadocMethod">
<property name="allowedAnnotations" value="Override, Test, BeforeAll, BeforeEach, AfterAll, AfterEach, Subscribe"/>
<property name="scope" value="public"/>
<property name="accessModifiers" value="public"/>
<property name="validateThrows" value="false"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
Expand Down

0 comments on commit 538483c

Please sign in to comment.