Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EC63] [Java] Rule "The variable exception is not assigned" irrelevant ? #53

Open
dedece35 opened this issue Jan 27, 2023 · 2 comments
Open
Labels
🗃️ rule rule improvment or rule development or bug java __PRIO_MEDIUM__

Comments

@dedece35
Copy link
Member

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 catchstatement. Please see followed captures :
variableNotAssigned-1
variableNotAssigned-2
variableNotAssigned-3

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 ?

@dedece35 dedece35 added 🗃️ rule rule improvment or rule development or bug java labels Jan 27, 2023
@jhertout
Copy link
Contributor

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)

@dedece35
Copy link
Member Author

new rule ID : EC63

@dedece35 dedece35 changed the title Java Rule "The variable exception is not assigned" discussion [EC63] [Java] Rule "The variable exception is not assigned" discussion Aug 25, 2023
@dedece35 dedece35 changed the title [EC63] [Java] Rule "The variable exception is not assigned" discussion [EC63] [Java] Rule "The variable exception is not assigned" irrelevant ? Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗃️ rule rule improvment or rule development or bug java __PRIO_MEDIUM__
Projects
None yet
Development

No branches or pull requests

2 participants