Description
The negated pattern should not be repeated multiple times.Bad Code
Good Code
Properties
- Category: Design
- Severity: Warning
- Enabled by default: True
- Code fix available: True
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The negated pattern should not be repeated multiple times
if (x is not null and not 0 and not 1)
if (x is not (null or 0 or 1))
dotnet_diagnostic.AL0002.severity = warning
Was this page helpful?
