Update Checkstyle config to match Filament (#744)

Allows the use of var in all locations.
This commit is contained in:
Juuz
2022-10-26 14:54:01 +03:00
committed by GitHub
parent 196ee87953
commit 896dcf987a

View File

@@ -3,6 +3,8 @@
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="fileExtensions" value="java"/>
<property name="localeLanguage" value="en"/>
<property name="localeCountry" value="US"/>
<module name="NewlineAtEndOfFile"/>
@@ -158,10 +160,5 @@
<module name="AtclauseOrder">
<property name="tagOrder" value="@param,@return,@throws,@deprecated"/>
</module>
<!-- Prevent var for all cases other than new instance creation -->
<module name="MatchXpath">
<property name="query" value="//VARIABLE_DEF[./TYPE/IDENT[@text='var'] and not(./ASSIGN/EXPR/LITERAL_NEW)]"/>
</module>
</module>
</module>