Skip to content

Commit

Permalink
Add checkstyle errors for non-inclusive terms (opensearch-project#1782)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied authored Apr 21, 2022
1 parent 9dc2d5e commit f3aa8be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
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>

0 comments on commit f3aa8be

Please sign in to comment.