我的公司正在从 Eclipse 切换到 IntelliJ。在 Eclipse 中,我们对抑制过滤器进行了以下配置checkstyle.xml
<module name="SuppressionFilter">
<property name="file" value="${checkstyle.config.dir}/suppressions.xml"/>
</module>
<module name="SuppressionFilter">
<property name="file" value="${common.checkstyle.config.dir}/global-suppressions.xml"/>
</module>
在哪里:
common.checkstyle.config.dir
是公共项目(IntelliJ 中的模块)的绝对路径。checkstyle.config.dir
是项目(模块)的相对路径,值为checkstyle.config.dir=${root.dir}/config/checkstyle
我们想在 IntelliJ 中为这个文件定义一个路径,所以它会在每个MODULE/config/checkstyle目录中查找抑制过滤器(每个模块都有不同的抑制)。
有谁知道这是否可能?我们已经尝试找到解决方案很长一段时间了,但到目前为止还没有运气。