我已将 Eclipse 配置为使用位于服务器上的远程 checkstyle 配置,我通过 HTTP 访问该配置。这工作正常,但配置包含:
<module name="SuppressionFilter">
<property name="file" value="${basedir}/checkstyle-filter.xml"/>
</module>
所以我尝试设置一个附加属性“basedir”,它指向配置所在的同一目录。当我尝试在项目上运行 checkstyle 时出现错误:无法初始化模块 SuppressionsFilter - 无法将模块 SuppressionFilter 中的属性 'file' 设置为 'http:// "my Url " /checkstyle-filter.xml'
关于如何配置 Eclipse 以使用来自服务器的 checkstyle 配置的任何建议,即使它包含 SuppressionFilter?我不想在每个项目中都放置一个 checkstyle-filter ...