Skip to content

Commit

Permalink
Ignore main method in checkstyle.xml
Browse files Browse the repository at this point in the history
Main method are not being ignored and are forced to have a javadoc.
This is unnecessary and the purpose of the main method is clear.
Therefore, let's ignore main method from having a javadoc.
  • Loading branch information
Eclipse-Dominator committed Jul 10, 2023
1 parent eb52f56 commit 6735e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
<module name="MissingJavadocMethodCheck">
<property name="minLineCount" value="1"/>
<property name="allowMissingPropertyJavadoc" value="true"/>
<property name="ignoreMethodNamesRegex" value="(set.*|get.*)"/>
<property name="ignoreMethodNamesRegex" value="(set.*|get.*|main)"/>
</module>

<!-- Checks that every public class, enumeration and interface has a header comment. -->
Expand Down

0 comments on commit 6735e7a

Please sign in to comment.