[英]How to analyze on SonarLint just the code that has been modified and not the whole class?
Is there a way to analyse the last modification on specific Java class without analsing the whole class in SonarLint 有没有一种方法可以分析特定Java类的最后修改而无需在SonarLint中分析整个类
Currently when open file or I save my modifications the whole class is analysed and this is not intresting when it comes to large class. 目前,当打开文件或保存所做的修改时,将对整个类进行分析,而对于大类来说,这并不是很有趣。
My goal is to analys last modification that are about to be commited. 我的目标是分析将要提交的最后修改。
I am using SonarLint with SonarQube Server and this one contains configured the Quality Barriers which analyzes just the difference of the code committed. 我将SonarLint与SonarQube Server结合使用,并且其中包含配置好的质量屏障,该质量屏障仅分析所提交代码的差异。
SonarLint won't support analysis last modifications according to mailing group answer : SonarLint不支持根据邮件组答案分析最后的修改:
We don't plan to introduce those kind of analysis properties in SonarLint.
我们不打算在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.
SonarLint的目标是简化配置并立即使用,因为它具有能够直接从IDE中获取大量配置数据的优点。
Question was similar: 问题是相似的:
We want to restrict sonarlint alaysis only for the latest modified/added code.
我们只想对最新的修改/添加的代码限制sonarlint布局。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.