gpt4 book ai didi

xml - FindBugs/SpotBugs : Filters: DTO or XML Schema

转载 作者:行者123 更新时间:2023-12-05 08:33:31 26 4
gpt4 key购买 nike

简而言之:是否有用于 FindBugs/SpotBugs 过滤器文件的官方 DTD 或 XML 模式?

详细信息:在 FindBugs/SpotBugs 中,可以定义过滤文件,它们是 XML 文件。我的 IDE 提示缺少 DTD 或 XML Schema,这很好。我知道如何抑制此警告,但我更喜欢添加适当的语法文件。因此,FindBugs/SpotBugs Filter Files 是否提供了 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">

关于xml - FindBugs/SpotBugs : Filters: DTO or XML Schema,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38956663/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com