2

I am developing a Java application and Using SonarLint to test the code quality. Sonar shows the error : Take the required action to fix the issue indicated by this comment.

For below line of code:

// FIXME: temp here until we drop tomee or remove all exceptions from ejb <-> non-ejb path.

Is there any way I can suppress the warning in SonarLint ?

4

2 回答 2

5

您可以使用连接模式将 IDE 中的项目绑定到 SonarQube 中的项目。SonarLint 将使用与 SonarQube 中相同的代码分析器和规则

在 SonarQube 中,可以更改分配给项目的质量配置文件,并以这种方式启用或禁用规则

更多信息:https ://www.sonarlint.org/intellij/howto.html

于 2017-02-06T13:35:21.447 回答
2

我检查了几个地方并尝试了很多方法来抑制警告,但结果//FIXME被认为major warningsSonar. 您需要通过删除标签并修复标签中提到的问题(由标签的开发人员)来照顾它们。
或者,如果该问题不需要修复或者这本身现在不是问题,您可以简单地删除标签。

于 2017-02-09T17:48:52.087 回答