小编Ume*_*ude的帖子

SuppressionCommentFilter 不允许作为 Checker 中的子项”

错误:无法解析 Checkstyle 规则文件。SuppressionCommentFilter 不允许作为 Checker 中的子文件 60 年代的文件已被列入黑名单。

注意:我使用的 Checkstyle 版本是 7.1.2。

这是一个看起来完全有效的配置,

<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>
Run Code Online (Sandbox Code Playgroud)

suppress-warnings intellij-plugin intellij-14 maven-checkstyle-plugin

5
推荐指数
1
解决办法
3497
查看次数