open-nomad/.semgrep/api_errorf.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
266 B
YAML
Raw Normal View History

rules:
- id: "fmt_errorf_unformatted_use"
patterns:
- pattern: fmt.Errorf("...")
message: "Use of fmt.Errorf without formatting. Please use errors.New"
languages:
- "go"
severity: "WARNING"
paths:
include:
- "./api/*"