Skip to content

Commit aab156f

Browse files
committed
CheckStyle: suppress complaints from JavadocPackage for test sources.
Addressed to #156 No functional changes.
1 parent 17464fc commit aab156f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/main/config/checkstyle-suppressions.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
<suppress checks="LineLength" files="src/main/java/ru/mystamps/web/dao/impl/package-info.java" />
1919
<suppress checks="LineLength" files="src/main/java/ru/mystamps/web/support/thymeleaf/GroupByParent.java" />
2020

21+
<!-- Packages in the tests don't need javadocs as they don't appear in the generated API docs -->
22+
<suppress checks="JavadocPackageCheck" files="src/test/java" />
23+
2124
</suppressions>

src/main/config/checkstyle.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141

4242
<!-- Checks that each Java package has a Javadoc file used for commenting. -->
4343
<!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage -->
44-
<!--
45-
<module name="JavadocPackage">
46-
<property name="allowLegacy" value="true"/>
47-
</module>
48-
-->
44+
<module name="JavadocPackage" />
4945

5046
<!-- Checks whether files end with a new line. -->
5147
<!-- See http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile -->

0 commit comments

Comments
 (0)