1 Cognitive Complexity of methods should not be too high
解决:复杂度高,if判断复杂,方法(包含if)拆分
2 “static” base class members should not be accessed via derived types
不应通过派生类型访问“静态”基类成员
JSONArray resJson = JSONArray.parseArray(transStr);(x)
JSONArray resJson = JSON.parseArray(transStr);(√)
SonarLint 扫描代码
最新推荐文章于 2024-05-31 22:09:15 发布