Scan my project
Scanning your project in SonarQube for VS Code is a simple, easy process.
SonarQube for IDE, a core component of the SonarQube solution, is a developer’s first line of defense to find and fix coding issues in real-time. The results of a SonarQube for IDE scan provide rich contextual guidance to help you improve your skills while enhancing productivity to help you resolve issues in code.
SonarQube for IDE scans your project to provide instant feedback against hundreds of language-specific rules. When running in connected mode with SonarQube Server or SonarQube Cloud, you can benefit from additional rules that identify security vulnerabilities and security hotspots as well as take advantage of team features that help your organization achieve high-quality code.
Every organization has custom policies and procedures; the SonarQube for IDE analyzer offers a level of customization to help you achieve those practices.
Overview
SonarQube for VS Code will automatically analyze all open files. Scanning a full project, including unopened files, is only available in the search for Security hotspots; please see the documentation on Reporting security hotspots In the Whole Folder for the full details.
First steps
SonarQube for VS Code will only analyze open files when a file is opened or saved. It is not possible to manually trigger an analysis.
Scanning while in Connected Mode
When running in Connected mode, SonarQube for IDE will sync with the SonarQube (Server, Cloud) or SonarQube Community Build quality profile to download issues and suppress those marked as safe or won’t fix on the server. The analyzer properties and rules will be respected and SonarQube for IDE will use locally what is defined on the server.
Language-specific information
C and C++ analysis
Please see the specific requirements for supported compilers and language standards described on the Running an analysis page.
Jupyter Notebooks
Specify additional analyzer properties
It is possible to specify extra analyzer properties that will be used for analysis.
// <project>/.vscode/settings.json
{
"sonarlint.analyzerProperties": {
"sonar.javascript.node.maxspace": "4096"
}
}
Last updated
Was this helpful?