Search code examples
intellij-pluginintellij-14suppress-warningsmaven-checkstyle-plugin

SuppressionCommentFilter is not allowed as a child in Checker"


Error: The Checkstyle rules file could not be parsed. SuppressionCommentFilter is not allowed as a child in Checker The file has been blacklisted for the 60s.

Note: the Checkstyle version which I am using is 7.1.2.

This is with a config that seems perfectly valid,

<module name="Checker">
  <property name="severity" value="warning" />
  <module name="TreeWalker">
    ...
  </module>
  ...
  <module name="SuppressWarningsFilter" />
  <module name="SuppressionFilter">
    <property name="file" value="${config_loc}/suppressions.xml"/>
  </module>
  <module name="SuppressionCommentFilter">
    <property name="checkC" value="false" />
  </module>
  ...
</module>

Solution

  • I got this resolved by matching the versions of Intellij checkstyle version and checks style jar file which I was uploading :). I used Intellj version 8.1 Check style jar which I was uploading 7.1.2. Now I changed both to 7.1.2, and its working. :)