- Operating system: Windows 10 Enterprise
- SonarLint plugin version: v3.13.0
The example code for noncompliant code in the desription(S3760) is even not detected.
const str = '80';
const quarter = str / 4; // Noncompliant
I was wondering if anyone could let me know what I need to do to enable S3760 rule.
Hello @hugh and welcome to the Sonar Community forum
Before we deep dive into an investigation, I would like to double-check that the S3760 rule is truly enabled on your machine. Note that for the rule S3760 is disabled by default and in order to enable it you would need to click the activate tick icon (see the screenshot).
Can you please confirm that the S3760 rule is indeed enabled on your setup?
After enabling the S3760 and using the code sample you provided, an expected issue is raised on my machine.
Also, please note that the latest version of SonarLint plugin for VSCode is 3.19.0 and we encourage all devs to use it as it has the latest features and fixes for our analyzers.