rspec/rules/S1068/description.adoc
Fred Tingaud 281206d0f4
Modify S1068: Migrate to LayC - unused private fields
Co-authored-by: Renaud T. <125455319+renaud-tognelli-sonarsource@users.noreply.github.com>
2023-10-10 18:27:17 +02:00

6 lines
329 B
Plaintext

If a `private` field is declared but not used locally, its limited visibility makes it dead code.
This is either a sign that some logic is missing or that the code should be cleaned.
Cleaning out dead code decreases the size of the maintained codebase, making it easier to understand and preventing bugs from being introduced.