Sonarlint error in vscode

  • Operating system:macos big sur 11.7.10 (20G1427)
  • Visual Studio version:Visual Studio Code - Insiders 1.90.0-insider (Universal)
  • SonarLint plugin version: SonarLintv4.5.1
  • Programming language you’re coding in: java
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version):no

And a thorough description of the problem / question:
Every time I start vscode, I will be reminded “sonarlint failed to analyze json code: node.js runtime version or later is required.” I am Java, I do not need to install node.js, and I do not want to install it. If the installation is to detect json For the correctness, can there be configuration items to exclude, so that there is no need to install node.js. Then I have another suggestion: sonarlint supports verification in many languages, but relatively speaking, I only need one development language. Sorry, I haven’t found a setting item that only turns on a certain language. Now it is the most detailed single-item turning off. For example, if you want to turn off c#, you need to click one by one, which is a bit cumbersome. I hope there can be basic configuration items for languages. Thank you.

Hi,

Welcome to the community and thanks for this report!

The latest version of SonarLint for VSCode is 4.6.0+76435. Could you upgrade and verify that the problem persists, please?

At any rate, for the extra languages, I believe that excluding the relevant files should suppress the messages you’re seeing. I believe you’ll want to exclude JavaScript, TypeScript, CSS, and HTML.

 
HTH,
Ann