SonarCloud remove candidate rule: java:S1450 Private fields only used as local variables in methods should become local variables #9926
CDellaGiusta
started this conversation in
Polls
Replies: 1 comment
-
There are some cases that we should look at and change the code according to this rule, but majority of them are basically what you say: classes to serialize to json. In this case I'm not sure if we should also add the getter and make it a pojo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This poll closes Friday, April 18th 2025.
Candidate rule for removal: java:S1450
Number of issues with this rule in Uyuni: 43
Rule: Private fields only used as local variables in methods should become local variables
Software qualities impacted: MAINTAINABILITY
Why is this an issue:
Should it be removed?:
You may be using a set-only member to use in json serialization class
All rule issues in Uyuni: https://sonarcloud.io/project/issues?languages=java&issueStatuses=OPEN%2CCONFIRMED&id=uyuni-project_uyuni&rules=java%3AS1450
Examples in our code:
9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions