Critical Go

Handle errors explicitly

Rule Description

Check every error return. No `_` for errors. Wrap with context: `fmt.Errorf("doing x: %w", err)`.

Included in Rulesets

Code Review Standards
214 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
Critical
Category
Go
Used in
1 ruleset