我在 Eclipse 中使用 SonarLint 来分析 JAVA Web 项目。
如何从 SonarLint 分析中排除 js
文件?
这是因为当我打开 js 文件时,SonarLint 开始降低 Eclipse 的性能。
使用的版本:
SonarLint for Eclipse 1.0.0.20151015-1547-RELEASE
谢谢
最佳答案
转到“窗口”->“首选项”、“SonarLint”->“扫描仪属性”并添加属性:
sonar.exclusions=**/*.js
sonar.test.exclusions=**/*.js
有关此的更多信息: http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus
SonarLint 仍然会被触发,但它会跳过所有 JS 源文件。您可以调整排除项以仅排除 js 文件的子集。 另请注意,自 SonarLint Eclipse 1.1 起,derived resources are excluded从分析来看。
关于eclipse - 从 SonarLint 中排除 JS 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33660091/