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

链接地址: http://www.djcxy.com/p/41378.html

上一篇: 为什么HTTP的PUT方法强制执行201 Created / 204 No Content split?

下一篇: 默认情况下,在Eclipse中禁用sonarlint自动分析