简体   繁体   English

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

[英]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.

相关问题 我们如何以编程方式查找 java class 是否已被修改? - How can we progrmatically find if a java class has been modified? SonarLint Eclipse:它还分析“src / test”中的源代码吗? - SonarLint Eclipse : Does it also analyze source code in “src/test”? 如何为不同类型的CRUD操作实现Hibernate Interceptor,并获取已修改的Java对象的类名? - How to implement Hibernate Interceptor for different type of CRUD actions and get the class name of the java object which has been modified? 如何检查文件是否在程序外部被修改? - How to check if a file has been modified outside the program? 如何使用 lastModified() 检测文件是否已被修改 - How can I detect if a file has been modified using lastModified() 如何使用 Junit 测试对象是否已被修改? - How to test whether the object has been modified using Junit? 如何更改表单域的颜色,其值已被用户修改? - How to change the color of a formfield its value has been modified by the user? Java:如何知道XML文档何时被修改 - Java : how to know when a XML Document has been modified 如何知道细胞数据没有被改变或修改? - How to know that cell data has not been changed or modified? 如何在应用签名之前检查PDF是否已被修改 - pdfbox - How to check if PDF has been modified before applying signature - pdfbox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM