Skip to content
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

[#1769] Implement more Checkstyle checks #2022

Merged
merged 5 commits into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
ORDER CHECKS
-->

<!-- Checks that the default is after all the cases in a switch statement. -->
<module name="DefaultComesLast"/>

<!-- Checks that the order of at-clauses follows the tagOrder default property value order.
@author, @version, @param, @return, @throws, @exception, @see, @since, @serial, @serialField, @serialData, @deprecated
-->
Expand Down Expand Up @@ -245,6 +248,9 @@
WHITESPACE CHECKS
-->

<!-- Checks that there is no whitespace before the colon in a switch block. -->
<module name="NoWhitespaceBeforeCaseDefaultColon"/>

<!-- Checks that comments are indented relative to their position in the code -->
<module name="CommentsIndentation"/>

Expand Down Expand Up @@ -358,6 +364,12 @@
<!-- Checks that all Javadoc comments start from the second line. -->
<module name="JavadocContentLocationCheck" />

<!-- Checks the indentation of the continuation lines in block tags. -->
<module name="JavadocTagContinuationIndentation">
<property name="offset" value="0"/>
<property name="violateExecutionOnNonTightHtml" value="true"/>
</module>

<!-- Checks the Javadoc's format for every method (excluding getters, setters and constructors). -->
<module name="JavadocMethod">
<property name="allowMissingParamTags" value="true"/>
Expand Down
Loading