ecoCode
ecoCode copied to clipboard
[EC63] [Java] Rule "The variable exception is not assigned" irrelevant ?
Is your feature request related to a problem? Please describe.
The java rule The variable exception is not assigned
with id cnumr-java:S63
isn't really "good" for our society becasue the argument to change delete the variable is not relevant. try-catch
statement in Java language use a temporary variable in catch
statement. Please see followed captures :
Describe the solution you'd like
- for the moment, this rule is disabled in our SonarQube
- check why this rule is relevant in our plugin
what is your point of view @glalloue, @jules-delecour-dav, @jhertout, @olegoaer, @mdubois81 ?
For this case, since we are forced to do that because of the language itself, maybe we should:
- ignore the "try catch" case for this rule.
- create a specific rule for the "try catch" case ? (to be able to deactivate only this case if we want)
new rule ID : EC63