mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-27 19:57:00 -05:00
Update Checkstyle config to match Filament (#744)
Allows the use of var in all locations.
This commit is contained in:
@@ -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>
|
||||
</module>
|
||||
|
||||
Reference in New Issue
Block a user