- Operating system: Windows
- SonarLint plugin version: Latest
- Programming language you’re coding in: C++
- Is connected mode used: Yep!
- Connected to SonarCloud: Yes
And a thorough description of the problem / question:
Hi! I have no intention of installing nodejs and I don’t currently have a use for Sonar to scan the few json files in my repo (.vscode/settings.json etc).
But sadly, everytime I have a toml (github actions) or json (vscode settings) open I get an error notification from SonarLint that I don’t have nodejs installed.
Please let me disable Sonar for these file types. It is really distracting and it’s absolutely driving me nuts.
Hello @photex, welcome to Sonar Community and thank you for your post!
We are aware that this notification is a bit noisy and causes frustration . The underlying problem will be tackled soon, once we start embedding the Node.js runtime inside SonarLint, so the users will not need to install it themselves.
In the meantime, I’ve created this ticket to allow “muting” the error notification via the “Don’t show again” action.
Please also note that in case you don’t want to analyze those files at all, including on SonarCloud, you can configure your project to exclude those files, and the config will also be automatically applied in SonarLint in Connected Mode.
Hope that helps,
Excellent thank you. One suggestion would be that the “error” message offered this advice regarding the project file, or that the sonarlint extension had a UI for editing the project file.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.