Disable sonarlint automatic analysis in Eclipse by default
We recently added SonarLint to our default Eclipse install, but only use sonarlint on some new projects. While we have been quite happy with sonarlint on these projects, having automatic analysis defaulting to on for all of our legacy projects, slows down Eclipse start-up.
I could go through the 600+ projects and add a .settings/org.sonarlint.eclipse.core.prefs
file containing autoEnabled=false
, but I would rather have projects default to false
and add an autoEnabled=true
prefs file for just the projects where we have made an effort to adhere to sonarlint rules.
Is there any way to do this?
From this discussion it seems that there's no way to disable automatic analysis globally by default. But there's a workaround: you can add sonar.exclusions properties for your files in the analyzer configuration (Window->Preferences->SonarLint->Analyzer Properties).
for example sonar.exclusions=**/*.js
excludes all *.js
files from automatic analysis