我正在尝试使用我的 checkstyle 规则 xml 在 Sonar 2.9 中创建新的规则配置文件。当我尝试导入配置了抑制过滤器的 checkstyle 规则文件时,声纳会给我以下消息:
Profile 'test2' created. Set it as default or link it to a project to use it for next measures. [hide]
Checkstyle filters are not imported: SuppressionCommentFilter
Checkstyle filters are not imported: SuppressionFilter [hide]
我现在不关心 SuppressionCommentFilter,但是如何启用 SuppressionFilter?如果不可能,是否有任何其他方法可以具有类似的功能,从 Sonar 的特定检查中排除特定文件?