Java 如何配置Gradle findbugs插件以提供更多bug描述?

Java 如何配置Gradle findbugs插件以提供更多bug描述?,java,gradle,findbugs,Java,Gradle,Findbugs,有没有办法在报告中添加或链接到更多错误描述 我的意思是对错误的良好解释,如RCN\u REDUNDANT\u NULLCHECK\u会像GUI模式中那样 有些bug的标题还不清楚 描述示例: RCN\u冗余\u空检查\u本应\u A\u NPE:检查一个值 此处查看它是否为null,但此值不能为null,因为 它以前被取消引用,如果它为null,则为null指针 在较早的取消引用时会发生异常。基本上, 此代码和以前的取消引用不一致,无法确定 值允许为null。该检查是冗余的,或者 以前的取消引用

有没有办法在报告中添加或链接到更多错误描述

我的意思是对错误的良好解释,如
RCN\u REDUNDANT\u NULLCHECK\u会像GUI模式中那样

有些bug的标题还不清楚

描述示例:

RCN\u冗余\u空检查\u本应\u A\u NPE
:检查一个值 此处查看它是否为null,但此值不能为null,因为 它以前被取消引用,如果它为null,则为null指针 在较早的取消引用时会发生异常。基本上, 此代码和以前的取消引用不一致,无法确定 值允许为null。该检查是冗余的,或者 以前的取消引用是错误的

你可以用它来做

它可以积累一堆报告工具,并在构建日志中很好地呈现出来

...
se/bjurr/violations/lib/example/OtherClass.java
╔══════════╤════════════╤══════════╤══════╤════════════════════════════════════════════════════╗
║ Reporter │ Rule       │ Severity │ Line │ Message                                            ║
╠══════════╪════════════╪══════════╪══════╪════════════════════════════════════════════════════╣
║ Findbugs │ MS_SHOULD_ │ INFO     │ 7    │ Field isn't final but should be                    ║
║          │ BE_FINAL   │          │      │                                                    ║
║          │            │          │      │                                                    ║
║          │            │          │      │    <p>                                             ║
║          │            │          │      │ This static field public but not final, and        ║
║          │            │          │      │ could be changed by malicious code or              ║
║          │            │          │      │         by accident from another package.          ║
║          │            │          │      │         The field could be made final to avoid     ║
║          │            │          │      │         this vulnerability.</p>                    ║
╟──────────┼────────────┼──────────┼──────┼────────────────────────────────────────────────────╢
║ Findbugs │ NM_FIELD_N │ INFO     │ 6    │ Field names should start with a lower case letter  ║
║          │ AMING_CONV │          │      │                                                    ║
║          │ ENTION     │          │      │                                                    ║
║          │            │          │      │   <p>                                              ║
║          │            │          │      │ Names of fields that are not final should be in mi ║
║          │            │          │      │ xed case with a lowercase first letter and the fir ║
║          │            │          │      │ st letters of subsequent words capitalized.        ║
║          │            │          │      │ </p>                                               ║
╚══════════╧════════════╧══════════╧══════╧════════════════════════════════════════════════════╝

Summary of se/bjurr/violations/lib/example/OtherClass.java
╔══════════╤══════╤══════╤═══════╤═══════╗
║ Reporter │ INFO │ WARN │ ERROR │ Total ║
╠══════════╪══════╪══════╪═══════╪═══════╣
║ Findbugs │ 2    │ 0    │ 0     │ 2     ║
╟──────────┼──────┼──────┼───────┼───────╢
║          │ 2    │ 0    │ 0     │ 2     ║
╚══════════╧══════╧══════╧═══════╧═══════╝


Summary
╔════════════╤══════╤══════╤═══════╤═══════╗
║ Reporter   │ INFO │ WARN │ ERROR │ Total ║
╠════════════╪══════╪══════╪═══════╪═══════╣
║ Checkstyle │ 4    │ 1    │ 1     │ 6     ║
╟────────────┼──────┼──────┼───────┼───────╢
║ Findbugs   │ 2    │ 2    │ 5     │ 9     ║
╟────────────┼──────┼──────┼───────┼───────╢
║            │ 6    │ 3    │ 6     │ 15    ║
╚════════════╧══════╧══════╧═══════╧═══════╝
。。。
se/bjurr/inflictions/lib/example/OtherClass.java
╔══════════╤════════════╤══════════╤══════╤════════════════════════════════════════════════════╗
║ 记者│ 统治│ 严重程度│ 线│ 消息║
╠══════════╪════════════╪══════════╪══════╪════════════════════════════════════════════════════╣
║ 芬德布格斯│ 女士应该│ 信息│ 7.│ 字段不是最终字段,但应该是最终字段║
║          │ 终局│          │      │                                                    ║
║          │            │          │      │                                                    ║
║          │            │          │      │    ║
║          │            │          │      │ 此静态字段为公共字段,但不是最终字段,以及║
║          │            │          │      │ 可能被恶意代码或║
║          │            │          │      │         意外地从另一个包裹里。║
║          │            │          │      │         可以将该字段设置为最终字段,以避免║
║          │            │          │      │         此漏洞。

║ ╟──────────┼────────────┼──────────┼──────┼────────────────────────────────────────────────────╢ ║ 芬德布格斯│ 纳米场│ 信息│ 6.│ 字段名称应以小写字母开头║ ║ │ 阿明康│ │ │ ║ ║ │ 弃权│ │ │ ║ ║ │ │ │ │ ║ ║ │ │ │ │ 非最终字段的名称应使用mi║ ║ │ │ │ │ 带小写首字母和fir的固定大小写║ ║ │ │ │ │ 后续单词的st字母大写。║ ║ │ │ │ │

║ ╚══════════╧════════════╧══════════╧══════╧════════════════════════════════════════════════════╝ se/bjurr/inflictions/lib/example/OtherClass.java概要 ╔══════════╤══════╤══════╤═══════╤═══════╗ ║ 记者│ 信息│ 警告│ 错误│ 全部的║ ╠══════════╪══════╪══════╪═══════╪═══════╣ ║ 芬德布格斯│ 2.│ 0│ 0│ 2.║ ╟──────────┼──────┼──────┼───────┼───────╢ ║ │ 2.│ 0│ 0│ 2.║ ╚══════════╧══════╧══════╧═══════╧═══════╝ 总结 ╔════════════╤══════╤══════╤═══════╤═══════╗ ║ 记者│ 信息│ 警告│ 错误│ 全部的║ ╠════════════╪══════╪══════╪═══════╪═══════╣ ║ 方格│ 4.│ 1.│ 1.│ 6.║ ╟────────────┼──────┼──────┼───────┼───────╢ ║ 芬德布格斯│ 2.│ 2.│ 5.│ 9║ ╟────────────┼──────┼──────┼───────┼───────╢ ║ │ 6.│ 3.│ 6.│ 15║ ╚════════════╧══════╧══════╧═══════╧═══════╝