andreasgk
andreasgk

Reputation: 713

SonarLint plugin in Eclipse changes every ".project" file

After installing SonarLint plugin for Eclipse (v2.0), the .project files in the workspace are changed! They are automatically extended by:

<buildCommand>
    <name>org.sonarlint.eclipse.core.sonarlintBuilder</name>
    <arguments>
    </arguments>
</buildCommand>

In our opinion it's a bug in the SonarLint plugin. As long as I don't extend a project by SonarLint-specific options the file .project should not be changed.

Can this problem be solved by means of any plugin options?

Upvotes: 3

Views: 1528

Answers (2)

Lennart Schedin
Lennart Schedin

Reputation: 1036

In version 2.2 of SonarLint the .project file is no longer modified. The improvement was part of the ticket:

[SLE-80] - Replace SonarLint builder by a ResourceChangeListener

Upvotes: 2

The sonarlintBuilder is what make "on save" analysis possible. By default all projects are analyzed by SonarLint so this builder is added on all projects.

You can decide to stop automatic analysis for some projects: in project properties -> SonarLint -> Disable automatic analysis.

Upvotes: 0

Related Questions