Skip to content

Commit

Permalink
Merge pull request #358 from spring-cloud/4.1.x-avoid-case-change-wit…
Browse files Browse the repository at this point in the history
…hout-locale

Add case change without locale checkstyle rule.
  • Loading branch information
OlgaMaciaszek authored Oct 17, 2024
2 parents 55bdc73 + bfa1ccf commit 9437a1a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spring-cloud-build-tools/src/main/resources/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,21 @@
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.TypecastParenPadCheck"/>
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck"/>
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck"/>
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
<property name="id" value="toLowerCaseWithoutLocale"/>
<property name="format" value="\.toLowerCase\(\)"/>
<property name="maximum" value="0"/>
<property name="message"
value="String.toLowerCase() should be String.toLowerCase(Locale.ROOT)"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
<property name="id" value="toUpperCaseWithoutLocale"/>
<property name="format" value="\.toUpperCase\(\)"/>
<property name="maximum" value="0"/>
<property name="message"
value="String.toUpperCase() should be String.toUpperCase(Locale.ROOT)"/>
<property name="ignoreComments" value="true"/>
</module>
</module>
</module>

0 comments on commit 9437a1a

Please sign in to comment.