3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Add checkstyle regexp to validate case methods

Dieser Commit ist enthalten in:
Kenzie Togami 2019-05-01 00:12:20 -07:00 committet von Kenzie Togami
Ursprung 13a8c480e3
Commit b419446109

Datei anzeigen

@ -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">