rrh*_*hrg 1 xml findbugs spotbugs
简而言之:是否有用于 FindBugs/SpotBugs 过滤器文件的官方 DTD 或 XML 模式?
详细说明:在 FindBugs/SpotBugs 中,可以定义过滤器文件,它们是 XML 文件。我的 IDE 抱怨缺少 DTD 或 XML 架构,这很好。我知道如何抑制此警告,但我更喜欢添加正确的语法文件。因此,FindBugs/SpotBugs 过滤器文件是否提供了 DTD 或 XML Schema?我找不到一个。
由于 findbugs 项目作为 spotbugs 继续更新:
xsd 的当前版本位于https://raw.githubusercontent.com/spotbugs/spotbugs/release-3.1/spotbugs/etc/findbugsfilter.xsd。
过滤器 xml 中的有效命名空间定义如下所示:
<FindBugsFilter xmlns="https://github.com/spotbugs/filter/3.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/release-3.1/spotbugs/etc/findbugsfilter.xsd">
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
635 次 |
最近记录: |