crystalfp
(Mario Valle)
April 12, 2026, 6:55am
1
Must-share information (formatted with Markdown ):
which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension): “eslint-plugin-sonarjs” : “^4.0.2”,
how is SonarQube deployed: zip, Docker, Helm: npm and then eslint
what are you trying to achieve: Need documentation on sonarjs/no-unused-vars rule
what have you tried so far to achieve this: Accessing from https://www.npmjs.com/package/eslint-plugin-sonarjs the link Sign in to GitHub · GitHub Gives “Unauthorized access error”
What I need to do to set this rule to ignore underscore starting (unused) variables like the “typescript-eslint/no-unused-vars” rule does with its “varsIgnorePattern” parameter.
ganncamp
(G Ann Campbell)
April 13, 2026, 3:05pm
2
Hi,
Unfortunately, this rule is not customizable; it has no parameters.
Can you share why you think this rule should ignore variables with a leading underscore in the name?
Thx,
Ann
crystalfp
(Mario Valle)
April 15, 2026, 3:40am
3
It is a common idiom to start a variable name with underscore to say “ignore this unused variable”.
Anyway, seems this rule is redundant because it does less than the “typescript-eslint/no-unused-vars” one, so at the end I disabled it.
My request about documentation originated by my desire to see if the rule provides anything more than the typescript-eslint one.
Thanks for your help!
karlhorky
(Karl Horky)
September 19, 2026, 5:01pm
8
Mario Valle:
btw the documentation link problem mentioned here is still around
I ended up digging into it and found hundreds of the same broken links in the SonarSource repos:
Victor, hey nice to see you again on the SonarSource message boards.
I came here because I’m still seeing many broken rule documentation links in the SonarSource/SonarJS repo:
I signed up for this Discourse to find out why the public docs are now missing.
I checked the change you made after this report. It looks like it removed the broken RSPEC links from two generated tables, but the main ## Rules table still contains 295 of them.
And it seems to go quite a bit further t…