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

Code clean up from Sonar Cloud analysis #2068

Merged
merged 45 commits into from
Jan 1, 2023
Merged

Code clean up from Sonar Cloud analysis #2068

merged 45 commits into from
Jan 1, 2023

Conversation

tastybento
Copy link
Member

No description provided.

Renamed "record" variable to not match a restricted identifier.
Restricted Identifiers should not be used as identifiers. "record" is
using in Java 16.
Changed variable name to rec instead of restricted "record".
Code smell: Methods should not have too many parameters. I'm not sure
what methods are using this class though.
The POM for MyWorlds is invalid and causes a warning, but this still
persists with this version.
Makes it clear when reading the code what might be caught
That said, this is legacy code to handle an issue that occurred a long
time ago and this whole set of code can probably be removed.
Using these instead leads to cleaner and more readable code.
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@tastybento tastybento merged commit 056cff4 into develop Jan 1, 2023
@BONNe BONNe deleted the code_clean branch January 3, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant