迁移 SonarQube 的版本并且找不到替换的 FindBugs 等价物
Migrating versions of SonarQube and cannot find replaced FindBugs equivalents
我们正在将我们的 SonarQube 版本升级到 5.1.2,发现我们现在使用的版本不再随 FindBugs 一起提供。似乎应该有可用的等效规则,但我们正在努力寻找它们,尤其是那些处理未关闭的数据库资源的规则。
有没有办法找到哪些规则替换了这些规则?
Bad practice - Method may fail to close database resource
Bad practice - Method may fail to close database resource on exception
Bad practice - Method may fail to close stream
Bad practice - Method may fail to close stream on exception
Bad practice - Non-serializable value stored into instance field of a serializable class
Dodgy - Transient field of class that isn't Serializable.
Method may fail to clean up stream or resource on checked exception
Non-transient non-serializable instance field in serializable class
找到它们 - 它们似乎都包含在 SonarQube 附带的以下两个规则中。
Fields in a "Serializable" class should either be transient or serializable
Resources should be closed
我们正在将我们的 SonarQube 版本升级到 5.1.2,发现我们现在使用的版本不再随 FindBugs 一起提供。似乎应该有可用的等效规则,但我们正在努力寻找它们,尤其是那些处理未关闭的数据库资源的规则。
有没有办法找到哪些规则替换了这些规则?
Bad practice - Method may fail to close database resource
Bad practice - Method may fail to close database resource on exception
Bad practice - Method may fail to close stream
Bad practice - Method may fail to close stream on exception
Bad practice - Non-serializable value stored into instance field of a serializable class
Dodgy - Transient field of class that isn't Serializable.
Method may fail to clean up stream or resource on checked exception
Non-transient non-serializable instance field in serializable class
找到它们 - 它们似乎都包含在 SonarQube 附带的以下两个规则中。
Fields in a "Serializable" class should either be transient or serializable
Resources should be closed