Using property based lookup for Checkstyle suppressions filter.
+ This is to be maximally compatible across all plugins and scenarios where the Checkstyle suppressions filter can be used. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
16cf6a34e1
commit
81894fb4ed
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
<!-- reference to suppressions filter for both eclipse and intellij checkstyle plugins -->
|
<!-- reference to suppressions filter for both eclipse and intellij checkstyle plugins -->
|
||||||
<module name="SuppressionFilter">
|
<module name="SuppressionFilter">
|
||||||
<property name="file" value="${config_loc}/jetty-suppressions.xml"/>
|
<property name="file" value="${checkstyle.suppressions.file}"/>
|
||||||
<property name="optional" value="true"/>
|
<property name="optional" value="true"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,14 @@
|
||||||
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||||
|
|
||||||
<suppressions>
|
<suppressions>
|
||||||
|
<suppress checks="AbbreviationAsWordInNameCheck"
|
||||||
|
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
||||||
|
<suppress checks="AvoidEscapedUnicodeCharactersCheck"
|
||||||
|
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
||||||
|
<suppress checks="LocalVariableNameCheck"
|
||||||
|
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
||||||
<suppress checks="MethodNameCheck"
|
<suppress checks="MethodNameCheck"
|
||||||
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
||||||
<suppress checks="TypeNameCheck"
|
<suppress checks="TypeNameCheck"
|
||||||
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
||||||
<suppress checks="LocalVariableNameCheck"
|
|
||||||
files="[/\\]src[/\\]test[/\\]java[/\\]" />
|
|
||||||
</suppressions>
|
</suppressions>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -1133,6 +1133,8 @@
|
||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configLocation>jetty-checkstyle.xml</configLocation>
|
<configLocation>jetty-checkstyle.xml</configLocation>
|
||||||
|
<suppressionsLocation>jetty-suppressions.xml</suppressionsLocation>
|
||||||
|
<suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
|
||||||
</configuration>
|
</configuration>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue