Description
When comparing Span and a constant, use pattern matching instead of equality operators, unless you want to compare addresses.Bad Code
Good Code
Properties
- Category: Usage
- Severity: Warning
- Enabled by default: True
- Code fix available: True
