Skip to main content
Source: Al0049UseGuardPositiveAnalyzer.cs

Description

Use Guard.Positive() instead of verbose positive-check and throw patterns.

Bad Code

Good Code

Properties

  • Category: Roslyn Utilities
  • Severity: Warning
  • Enabled by default: True
  • Code fix available: True

Configuration