Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Sonarlint automatic scan for Eclipse Remote Systems Explorer

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 notices all over the place.

To keep every clean and separated I have setup different workspaces for each client.

Things I tried:

There is the project settings there is a switch to disable the automatic scan, however those settings are not accessible for the Remote Systems Explorer.

Also that switch for automatic scan does not seem to be available in the global settings.

Next to that I tried the following globally SonarLint -> Analyzer Properties as stated in Exclude JS files from SonarLint:

sonar.exclusions=**/*.php
sonar.test.exclusions=**/*.php

That did not work, but that could be due to the fact that those settings are not possible in that location. At least that is what is stated in: https://groups.google.com/forum/#!msg/sonarlint/aBxnpn-yLbg/KL9nOiFQBAAJ

The SonarLint plugin also does not seem to show in the General -> Startup and Shutdown global settings, so I cannot disable it for a specific workspace.

like image 561
Mark Boessenkool Avatar asked Sep 30 '16 16:09

Mark Boessenkool


People also ask

How do I enable disable rules in SonarLint?

To Disable/Re-Enable Rules in SonarLint/Eclipse. -Window-Preferences-SonarLint-Rules Configuration. -Select Your Language(in my case Java). -Select the drop for changed rules or open the + symbol to show all rules.

How do I stop automatic SonarLint analysis in Intellij?

Save this answer. Show activity on this post. In Android Studio 3.5. 2: Go to File -> Settings -> Tools -> SonarLint -> Settings(Tab) then uncheck the Automatically trigger analysis check box.

How does Eclipse integrate with SonarLint?

@pippilongstocking The first things is to enable it for a project: you right click over a project (in the project view), Configure -> Enable SonarLint. Then, files should be automatically analyse when opening them or saving them.


1 Answers

Step 1 : Close all opened files in eclipse editor window.

Step 2 : Go To Project > Properties > SonarLint , then uncheck 'Run SonarLint Automatically' checkbox.

Step 3 : Restart Eclipse.

like image 120
Anuraj Avatar answered Nov 15 '22 16:11

Anuraj