Eclipse Checkstyle - 无法解析配置流

Eclipse Checkstyle - unable to parse configuration stream

正在尝试将 suppressions.xml 添加到我的检查样式中。但是我无法选择我的 suppressions.xml 文件的工作区路径。

<module name="SuppressionFiler">
<property name="file" value="${workspace_loc}/com.test.checkstyle/conf/suppressions.xml"/>
</module>

我总是收到以下错误:

Error running builder 'Checkstyle Builder' on project 'Checkstyle_Test'. unable to parse configuration stream - Property ${workspace_loc} has not been set.

我也无权访问 ${buildir}。

如何找到工作区项目目录?

编辑:如果我输入总路径,我会找到 suppressions.xml。

而不是 workspace_loc,您可以使用 config_loc 作为:${config_loc}/suppressions.xml.

${config_loc} 是 Eclipse 的一个变量,它将引用 checkstyle.xml 所在的同一目录。