SuppressionCommentFilter不允许作为Checker中的孩子“

问题描述 投票:2回答:1

错误:无法解析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>
intellij-plugin intellij-14 suppress-warnings maven-checkstyle-plugin
1个回答
0
投票

请参阅:8.1版的发行说明

打破向后兼容性:

使TreeWalker的SuppressionCommentFilter和SuppressWithNearbyCommentFilter成为子项。作者:帖木儿#4714

http://checkstyle.sourceforge.net/releasenotes.html

© www.soinside.com 2019 - 2024. All rights reserved.