如何在 SonarLint 上只分析已修改的代码而不是整个 class?

How to analyze on SonarLint just the code that has been modified and not the whole class?

有没有办法在 SonarLint

中分析特定 Java class 的最后修改而不分析整个 class

目前,当打开文件或保存我的修改时,整个 class 都会被分析,当涉及到大 class 时,这并不有趣。

我的目标是分析即将提交的最后修改。

我正在将 SonarLint 与 SonarQube 服务器一起使用,这个包含配置的质量障碍,它只分析提交代码的差异。

SonarLint 将不支持根据 mailing group answer:

分析最后修改

We don't plan to introduce those kind of analysis properties in SonarLint. The goal of SonarLint is to simplify configuration and to work out of the box, because it has the advantage of being able to take a lot of configuration data directly from the IDE.

问题类似:

We want to restrict sonarlint alaysis only for the latest modified/added code.