| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Fixed issues: - AZ5pmweAnkbslnV8uoyi for java:S1820 rule Generated by SonarQube Agent (task: a62fe598-98fe-40e4-87cb-7e0e4766850d)
| Back | FazBrowse Home | New Git URL |
Removes the unused lock field from the PythonScanner class to comply with the SonarQube MAJOR issue requiring classes to have no more than 20 fields. This refactoring improves code maintainability by reducing class complexity.
View Project in SonarCloud
Fixed Issues
java:S1820 - Refactor this class so it has no more than 20 fields, rather than the 21 it currently has. • MAJOR • View issueLocation: python-commons/src/main/java/org/sonar/plugins/python/PythonScanner.java:67
Why is this an issue?
A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain, and having a lot of fields is an indication that a class has grown too large.
What changed
Removes the lock field from the PythonScanner class, reducing the total number of fields from 21 to 20. This directly addresses the code smell warning that the class has too many fields (more than the allowed threshold of 20).
SonarQube Remediation Agent uses AI. Check for mistakes.