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 1 commit
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
14 changes: 14 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<!-- Checks that there are no tab characters in the file. -->
</module>


germainelee02 marked this conversation as resolved.
Show resolved Hide resolved

<module name="NewlineAtEndOfFile">
<!-- Accept LF, CR or CRLF to accomodate devs who prefer different line endings -->
<property name="lineSeparator" value="lf_cr_crlf"/>
Expand All @@ -38,6 +40,18 @@
<!-- All Java AST specific tests live under TreeWalker module. -->
<module name="TreeWalker">

germainelee02 marked this conversation as resolved.
Show resolved Hide resolved
<!-- Checks that the default is after all the cases in a switch statement. -->
<module name="DefaultComesLast"/>
germainelee02 marked this conversation as resolved.
Show resolved Hide resolved

<!-- Checks that the default is after all the cases in a switch statement. -->
germainelee02 marked this conversation as resolved.
Show resolved Hide resolved
<module name="JavadocTagContinuationIndentation">
germainelee02 marked this conversation as resolved.
Show resolved Hide resolved
<property name="offset" value="0"/>
<property name="violateExecutionOnNonTightHtml" value="true"/>
</module>

<!-- Checks that there is no whitespace before the colon in a switch block. -->
<module name="NoWhitespaceBeforeCaseDefaultColon"/>
germainelee02 marked this conversation as resolved.
Show resolved Hide resolved

<!-- Required to allow exceptions in code style -->
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)"/>
Expand Down
Loading