java - Checkstyle multiple files SuppressionFilter -
i want have multiple suppression files checkstyle. means, i'll have 2 separate files separate suppression rules:
the way add 1 file add in rules:
<module name="suppressionfilter"> <property name="file" value="docs/suppressions.xml"/> </module>
what want achieve is: (this isn't legal syntax)
<module name="suppressionfilter"> <property name="file" value="docs/suppressions-1.xml"/> <property name="file" value="docs/suppressions-2.xml"/> </module>
i tried using 2 separate suppressionfilters, seems overwrite first second.
what mean is:
<module name="suppressionfilter"> <property name="file" value="docs/suppressions-1.xml"/> </module> <module name="suppressionfilter"> <property name="file" value="docs/suppressions-2.xml"/> </module>
if done above, use suppressions-2.xml
is there way this?
your option 2 good, add module twice:
<module name="suppressionfilter"> <property name="file" value="docs/suppressions-1.xml"/> </module> <module name="suppressionfilter"> <property name="file" value="docs/suppressions-2.xml"/> </module>
both suppressions active, suppressed in either file suppressed.
if suppressions-1.xml not working, problem in file.
Comments
Post a Comment