Rules are not showing as violated (S6534)

Hi I am using vscode :1.98.1 and sonarqube for IDE extension 4.20.2
I have connected with server which has sonarway default rules but for some rules, its not showing as violated .For example:

const a = Number.MAX_SAFE_INTEGER + 1;

const b = Number.MAX_SAFE_INTEGER + 2;

console.log(a == b);

this code should violate the rule :Numbers should not lose precision (typescript:S6534)

I have checked with all the boxes like proper tsconfig.json and I can see those rules as active in the rules window of vs code extension, from output window I can see my file is picked up and actually for the same file some other basic rules are working.

Is there any limitation in sonarqube extension ?whether it can cover only these categories of rules and not more than that or something.If anyone have any answers,feel free to help me

Hi,

Welcome to the community!

Could you give us your log?

 
Thx,
Ann

Hi, seems there is some problem with tsconfig.json solved it. Thank you for you help.

1 Like

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