mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Add checkstyle regexp to validate case methods
This commit is contained in:
parent
13a8c480e3
commit
b419446109
@ -57,6 +57,12 @@
|
|||||||
<module name="WhitespaceAround">
|
<module name="WhitespaceAround">
|
||||||
<property name="tokens" value="ASSIGN"/>
|
<property name="tokens" value="ASSIGN"/>
|
||||||
</module>
|
</module>
|
||||||
|
<!-- Validate String.to(Lower|Upper)Case() calls include Locale argument -->
|
||||||
|
<module name="Regexp">
|
||||||
|
<property name="message" value="Case-conversion calls must include an explicit Locale"/>
|
||||||
|
<property name="format" value="(?!Character)\.to(Lower|Upper)Case\(\)"/>
|
||||||
|
<property name="illegalPattern" value="true"/>
|
||||||
|
</module>
|
||||||
</module>
|
</module>
|
||||||
<!-- Validate that command annotations are formatted correctly -->
|
<!-- Validate that command annotations are formatted correctly -->
|
||||||
<module name="RegexpMultiline">
|
<module name="RegexpMultiline">
|
||||||
|
Loading…
Reference in New Issue
Block a user