Rule typescript:S5689 is enabled on the server, but not available in SonarLint

Please provide

  • Operating system: Mac OS
  • SonarLint plugin version: 3.12.0
  • Programming language you’re coding in: Javascript / Angular
  • Is connected mode used: Yes
    • Connected to SonarCloud or SonarQube (and which version): SonarQube: Developer EditionVersion 8.5.1 (build 38104)

And a thorough description of the problem / question:

Can’t seem to get linting to work locally in VSCode via SonarLint. Getting errors such as “Enabled on server but not available in SonarLint.”
or
“Skipping the start of eslint-bridge server as it failed to start during the first analysis or it’s not answering anymore”

Been searching the web and have not been able to sort it out unfortunately. Hopefully someone can see what im not :slight_smile:

[Info  - 16:08:09.815] Analyzing 3 files...
[Debug - 16:08:09.815] Analysis triggered with configuration:
[
  projectKey: hudsonmx-fe-agency-central-platform-integrations
  baseDir: /Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe
  extraProperties: {sonar.cfamily.compile-commands=}
  moduleKey: file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe
  inputFiles: [
    file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe/libs/agency-central/platform-integrations-feature-shell/src/lib/components/platform-integration-modal/platform-integration-modal.component.html (UTF-8) [web]
    file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe/libs/agency-central/platform-integrations-feature-shell/tsconfig.lib.json (UTF-8)
    file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe/libs/agency-central/platform-integrations-feature-shell/src/lib/components/platform-integration-modal/platform-integration-modal.component.ts (UTF-8) [ts]
  ]
]

[Debug - 16:08:09.817]   * cpp: 299 active rules
[Debug - 16:08:09.817] Rule common-cpp:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817]   * c: 181 active rules
[Debug - 16:08:09.817] Rule common-c:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817]   * java: 410 active rules
[Debug - 16:08:09.817] Rule javasecurity:S5167 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule javasecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule javasecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule javasecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule common-java:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule javasecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule javasecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.817] Rule javasecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule javasecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule javasecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule javasecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule javasecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule javasecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule javasecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818]   * web: 28 active rules
[Debug - 16:08:09.818] Rule Web:S5148 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818]   * xml: 4 active rules
[Debug - 16:08:09.818]   * js: 89 active rules
[Debug - 16:08:09.818] Rule javascript:S5689 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule jssecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818]   * php: 123 active rules
[Debug - 16:08:09.818] Rule phpsecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule common-php:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5335 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5167 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule phpsecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818]   * py: 126 active rules
[Debug - 16:08:09.818] Rule pythonsecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5167 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule pythonsecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818]   * plsql: 130 active rules
[Debug - 16:08:09.818]   * ts: 142 active rules
[Debug - 16:08:09.818] Rule typescript:S5689 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule common-ts:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.818] Rule tssecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 16:08:09.826] Start analysis
[Info  - 16:08:09.828] Index files
[Debug - 16:08:09.829] Language of file 'file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe/libs/agency-central/platform-integrations-feature-shell/src/lib/components/platform-integration-modal/platform-integration-modal.component.html' is set to 'HTML'
[Debug - 16:08:09.829] Language of file 'file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe/libs/agency-central/platform-integrations-feature-shell/src/lib/components/platform-integration-modal/platform-integration-modal.component.ts' is set to 'TypeScript'
[Info  - 16:08:09.829] 3 files indexed
[Debug - 16:08:09.844] 'JavaSquidSensor' skipped because there is no related files in the current project
[Debug - 16:08:09.844] 'CFamily' skipped because there is no related files in the current project
[Debug - 16:08:09.844] 'PL/SQL Sensor' skipped because there is no related files in the current project
[Debug - 16:08:09.844] 'XML Sensor' skipped because there is no related files in the current project
[Debug - 16:08:09.844] 'Python Sensor' skipped because there is no related files in the current project
[Debug - 16:08:09.844] Execute Sensor: HTML
[Debug - 16:08:09.846] HtmlSensor: [uri=file:///Users/alanrichards/HudsonMX/FrontEnd/hudsonmx-fe/libs/agency-central/platform-integrations-feature-shell/src/lib/components/platform-integration-modal/platform-integration-modal.component.html]: 0,0,2
[Debug - 16:08:09.848] 'PHP sensor' skipped because there is no related files in the current project
[Debug - 16:08:09.848] 'Analyzer for "php.ini" files' skipped because there is no related files in the current project
[Debug - 16:08:09.848] Execute Sensor: Sonar Secrets Detection Sensor
[Debug - 16:08:09.850] 'JavaScript analysis' skipped because there is no related files in the current project
[Debug - 16:08:09.850] Execute Sensor: TypeScript analysis
[Debug - 16:08:09.850] Skipping the start of eslint-bridge server as it failed to start during the first analysis or it's not answering anymore
[Debug - 16:08:09.850] No rules will be executed

Hi,

That rule is a Security Hotspot rule & Security Hotspots deliberately aren’t raised in SonarLint. Why? The issues we raise are actionable: you need to do something (and here’s what and why). Security Hotspots are different. They things you should look at. There may be a problem, there may not. Static analysis can’t tell and human judgement is required.

But since they’s not definitely something to fix, we only raise them during full analysis. In connected mode with recent versions of SonarQube you should be able to navigate from SonarQube directly to a Security Hotspot location in SonarLint (there’s a button in the UI) but that’s it.

But that does bring me to your SonarQube version. You’re on 8.5.1, which is definitely EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.5.1 → 8.9.10 → 9.7.1 (last step optional)

You may find the Upgrade Guide helpful. If you have questions about upgrading, feel free to open a new thread for that here.

 
HTH,
Ann

Thank you so much for your response @ganncamp !

Couple questions: pardon my lack of understanding here

  1. What do I need to enable to have linting working locally? Is that something that is enabled via SonarQube and picks it up locally or do I enable something locally that will have SonarLint linting my local files?
  2. Why is my html files getting linted locally but nothing else?

Thank you so much for your time :slight_smile:

Hi,

Even though you’re running the latest SonarLint version, you’re connected to an EOL version of SonarQube and that’s influencing your experience. Among other things, it means you’re getting old versions of the rule engines from your server.

I would start by getting your server upgraded and then going from there.

In the meantime, you may want to disconnect from your server and see if that improves the experience.

 
Ann

Wow! Ok good to know! Ill let our devops team know and see if we can’t get that update :slight_smile:

Should this post stay open in the meantime or should I open another discussion after things are updated and I know if they are working or not?

Hi,

Thanks for asking! We try to keep it to one question per thread - otherwise things get messy, fast. Your title is about a specific rule, and then the body goes into multiple things. (Yes, I know they seemed possibly related…).

So since your context will have changed, and to keep things tidy, please start a new thread if you’re still having problems after the upgrade.

 
:smiley:
Ann

Sounds good!

Thank you for your time @ganncamp.

Hope you have a great rest of your week!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.