I'd like to know if there is a way to avoid having sonarQube reporting a "Code Smell" issue when a local variable is assigned and not used (writing javascript, in this case nodeJS)?
Why do I want to do that ?: for example because during WIP on code, I know some variables will be needed & used but the code using them is not yet written.
Using ESLint I can remove the error with an ESLint statement like this one:
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "^_tbu_" }]*/
so that a statement like
var _tbu_myVar = getSomething();
without using _tbu_myVar will not raise an ESLint error.
So my question is: how can I do that using sonarQube ? Thanks