sonarlint

sonar.coverage.exclusions and sonar.exclusions does not exclude the files from

て烟熏妆下的殇ゞ 提交于 2019-12-10 12:03:56
问题 I already went through : Configure Sonar to exclude files from Maven pom.xml and still SonarLint is unable to execlude those all files. Any help is much appreciated <properties> <java.version>1.8</java.version> <sonar.coverage.exclusions> **/dto/**/*, **/entity/**/*, **/exception/**/*, **/repository/**/*, **/enums/**/*, **/assembler/**/*, **/src/main/resources/sql/**/*, **/controller/**/*, **/utils/**/*, **/security/**/*, **/servlet/**/*, **/MainApplication.java </sonar.coverage.exclusions>

Built-in string formatting vs string concatenation as logging parameter

南笙酒味 提交于 2019-12-09 08:00:52
问题 I'm using SonarLint that shows me an issue in the following line. LOGGER.debug("Comparing objects: " + object1 + " and " + object2); Side-note: The method that contains this line might get called quite often. The description for this issue is "Preconditions" and logging arguments should not require evaluation (squid:S2629) Passing message arguments that require further evaluation into a Guava com.google.common.base.Preconditions check can result in a performance penalty. That's because

How to add certificates to SonarLint in Eclipse

泄露秘密 提交于 2019-12-09 05:39:37
问题 A certificate is required to connect my SonarQube server. I have installed the SonarLint plugin, but it does not have any option to add certificates to connect my SonarQube server. It has only URL, username , password options. Is there any way to set certificates ? 回答1: SonarLint does not permit the configuration of certificates, but you can add certificate to JRE or JDK. https://docs.oracle.com/javase/tutorial/security/toolsign/rstep2.html Copied text from Oracle documentation: Import the

Disable Sonar rule using pom.xml?

扶醉桌前 提交于 2019-12-08 09:36:36
问题 I am using Spring Boot and Spring Jpa example and looking to disabled below Sonar rule through maven mainly using pom.xml file. I don't have access or can't go and disable that rule in SonarQube as it's configured for the Org level. Methods should not have too many parameters (squid:S00107) Can someone please guide me on that? I already went through web many times and did not find any promising solutions yet. This is what I look at : Configure Sonar to exclude files from Maven pom.xml too.

SonarLint Binding Error since Version 2.8.0.214 - Project Count out of Range?

不羁岁月 提交于 2019-12-08 05:15:53
问题 I am facing an error while binding a Solution to my SonarQube Projects. I am using VS 2015 Update 3, SonarLint 2.8.0.214 and SonarQube 5.6. Also the Update on already bound Projects fails. I guess this has something to do with the new SonarLint Version that I have installed since Yesterday. Before the Update of the SonarLint Extension I have not had these kind of errors. It seems that the Project count is out of Range: Binding solution to SonarQube project: Started Binding solution to

Package names should comply with a naming convention (squid:S00120) and underscore

╄→尐↘猪︶ㄣ 提交于 2019-12-05 06:21:23
SonarLint produces an error: Package names should comply with a naming convention (squid:S00120) ... With the default regular expression ^[a-z]+(\.[a-z][a-z0-9]*)*$. However the JLS allows and even recommends using the underscore. Clause 6.1. Declarations says, i.a., If the domain name contains a hyphen, or any other special character not allowed in an identifier (§3.8), convert it into an underscore. Can I change the regular expression or must it be fixed in the product? Consider using a SonarQube server. You can connect your SonarLint plugin to the server and manipulate the way SL performs

Disable Sonarlint automatic scan for Eclipse Remote Systems Explorer

拥有回忆 提交于 2019-12-04 04:27:40
问题 How can I disable the SonarLint automatic scan in Eclipse for the Remote Systems Explorer plugin? Background: I recently installed the SonarLint plugin for Eclipse, because a client I work for uses Sonar for code quality. And love the direct reporting of bugs and code smells. Now I try to do some work for another client, which doesn't use Sonar, and has a old legacy project. Which I have connect to via SFTP so I use the Remote Systems Explorer for that. But when I open any file I can see

SonarLint V3: Fields in a “Serializable” class should either be transient or serializable for List interface

喜夏-厌秋 提交于 2019-12-04 03:48:27
问题 My question is very similar to this except that this issue I have encountered in SonarLint V3 (squid:S1948). My code is : public class Page<T> implements Serializable { Summary summary; List<T> elements; public Page() { summary = new Summary(); } public List<T> getItemsReceived() { return elements; } public void setItemsReceived(List<T> list) { this.elements = list; } public Summary getSummary() { return summary; } public void setSummary(Summary summary) { this.summary = summary; } } The

How to use SonarLint in Eclipse

限于喜欢 提交于 2019-12-03 14:38:56
问题 I was assigned to use SonarQube for code quality. But while I'm downloading it's plugin to Eclipse I understood it is deprecated and new one is SonarLint. But as so far I couldn't find any good documentation to how to use SonarLint. How to check java project using that. I only got touch with Youtube videos. But sadly they are really really unclear to me. If can direct me to a good place to gain clear knowledge on this I'll be really grateful to you. 回答1: You can install SonarLint from the

How to add certificates to SonarLint in Eclipse

不想你离开。 提交于 2019-12-03 13:20:44
A certificate is required to connect my SonarQube server. I have installed the SonarLint plugin, but it does not have any option to add certificates to connect my SonarQube server. It has only URL, username , password options. Is there any way to set certificates ? SonarLint does not permit the configuration of certificates, but you can add certificate to JRE or JDK. https://docs.oracle.com/javase/tutorial/security/toolsign/rstep2.html Copied text from Oracle documentation: Import the Certificate as a Trusted Certificate Before you can grant the signed code permission to read a specified file,