如何在Java中禁止FIXME注释的警告

abh*_*414 2 java eclipse sonarqube sonarlint sonarlint-eclipse

我正在开发一个Java应用程序并使用SonarLint来测试代码质量.声纳显示错误:采取必要的操作来解决此评论所指示的问题.

对于以下代码行:

// FIXME: temp here until we drop tomee or remove all exceptions from ejb <-> non-ejb path.
Run Code Online (Sandbox Code Playgroud)

有什么方法可以抑制SonarLint中的警告吗?

Dua*_*ses 5

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

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

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