I have a custom checkstyle checks file (called checks.xml) and I'm trying to use the same file in both maven and eclipse. Everything works well except SuppressionFilter .
In this checks.xml I have
<module name="SuppressionFilter"> <property name="file" value="src/main/resources/checkstyle/checkstyle-suppressions.xml"/> </module>
This works when I run through maven. However, when I launch the eclipse, I need to change the configuration as
<module name="SuppressionFilter"> <property name="file" value="${basedir}/src/main/resources/checkstyle/checkstyle-suppressions.xml"/> </module>
If I run the $ {basedir} property with maven, though, I get an error that the $ {basedir} property has not been set.
Can I use this configuration file in both maven and eclipse? I feel it should be, but I just missed something on how to properly fill out the suppression filter.
thanks jeff
source share