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

Add checkstyle for non-inclusive terms #1782

Merged
merged 1 commit into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,9 @@ checkstyle {
}

tasks.withType(Checkstyle) {
showViolations true
reports {
showViolations false
ignoreFailures = true
xml.required = true
html.required = true
ignoreFailures = false
}
}

Expand Down
16 changes: 15 additions & 1 deletion config/checkstyle/sun_checks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
https://checkstyle.org/config.html#Checker
<property name="basedir" value="${basedir}"/>
-->
<property name="severity" value="error"/>
<property name="severity" value="ignore"/>

<property name="fileExtensions" value="java, properties, xml"/>

Expand Down Expand Up @@ -183,4 +183,18 @@

</module>

<module name="RegexpSingleline">
<property name="format" value="whitelist"/>
<property name="ignoreCase" value="true"/>
<property name="message" value="Usage should be switched to an allow* based pattern" />
<property name="severity" value="warning"/>
</module>

<module name="RegexpSingleline">
<property name="format" value="master"/>
<property name="ignoreCase" value="true"/>
<property name="message" value="Usage should be switched to cluster manager" />
<property name="severity" value="warning"/>
</module>

</module>