Description
Field names should not conflict with primary constructor parameters to avoid shadowing and confusion.Bad Code
Good Code
Properties
- Category: Design
- Severity: Warning
- Enabled by default: True
- Code fix available: False
Field names should not conflict with primary constructor parameters