Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarLint doesn't see server binding

IntelliJ IDEA -> Settings -> Other settings -> SonarLint General Settings

SonarQube servers: Localhost (http://localhost:9000; login: admin; password: admin; test connection - "Authentification successful") Update binding: few seconds ago

IntelliJ IDEA -> Settings -> Other settings -> SonarLint Project Settings

Bind to server: Localhost SonarQube project: Update server binding first

But it's already bound! What may be wrong? Web interface also can't see the project.

When I press Analize code with SonarLint in workspace, I get an error popup: "Project bound to invalid SonarQube server. Please, check configuration"

like image 941
Katoteshi Fuku Avatar asked Jul 09 '16 17:07

Katoteshi Fuku


People also ask

How do I connect SonarLint to SonarQube server?

In Intellij — Go to File >> Plugins >> Type 'SonarLint' >> Install and Restart IDE. (2) we can choose the SonarQube rules. → To integrate SonarQube(server) and SonarLint in our IDE and run SonarQube code inspection rules per class to give results quickly. Add the sonarQube connection binding.

How do I activate rules in SonarLint?

Open the “SonarLint Bindings” view in Eclipse, right click on your connection, and click “Update all projects bindings”. I know the root cause. It is because these rules are default not activated. I shoud copy the built-in profile and activate them, then Update All Project Bindings from SonarLint.

How do you fix SonarLint issues?

You can use Save action on your whole project: Right-click on your Java project source -> Source -> Format... Right-click on your Java project source -> Source -> Clean Up... Use the AutoRefactor plugin: Right-click on your code -> AutoRefactor -> Automatic refactoring.

How do I bind a project in SonarLint IntelliJ?

IntelliJ IDEA -> Settings -> Other settings -> SonarLint Project Settings Bind to server: Press refresh binding. That's it.


1 Answers

Go to http://localhost:9000

Then go to administration

Then go to projects management

Then press create project, enter project name exactly like in your IDE.

Then go to

IntelliJ IDEA -> Settings -> Other settings -> SonarLint Project Settings Bind to server:

Press refresh binding.

That's it.

like image 99
avalon Avatar answered Oct 05 '22 10:10

avalon