Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to trigger SonarLint Analysis on whole Project

I have installed the latest sonarLint plugins with Intellij 2016.1.2. Analyze on the fly works fine. However, I can't find in the IntelliJ "Analyze" tab any "Analyze with SonarLint". In the SonarLint window>issues tab, I can only see scope "current file" or "opened files". I don't see any Project scope. So my question is how to trigger the analysis on my whole project ?

like image 502
Claude Libois Avatar asked May 19 '16 06:05

Claude Libois


People also ask

How do I run a SonarLint on an entire project?

Press Ctrl + Shift + S That's correct. You must just take care to select the project - instead of just one source file - in the Project view. Otherwise the Report is made only for that source file. or right click project and click on sonarlint then analyze!

How do you run a SonarLint analysis?

Right-click on any project file in our project window to open the context menu. From the "Analyze" submenu all the way at the bottom, select the "Analyze all files with SonarLint" option.

How do I run a SonarLint analysis in IntelliJ?

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.

How do I see SonarLint issues in Visual Studio?

SonarLint only shows issues in the IDE. It does not push issues to SonarQube/SonarCloud. If you want to run analysis in on your CI pipelines and push the issues to the server then you need to use one of the batch mode scanners. Since you are using Azure DevOps, you can use the SonarQube extension for Azure DevOps.


1 Answers

Since SonarLint v2.8, it's possible to analyze all files in the project.

Open the SonarLint Tool Window, go to the Project files tab, and click in the "play" button. There is also an action to which you can assign a shortcut.

More information here: https://www.sonarlint.org/intellij/howto.html

like image 64
Duarte Meneses Avatar answered Sep 28 '22 02:09

Duarte Meneses