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.
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.
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.
@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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With