open-nomad/.semgrep/api_errorf.yml
2023-04-10 15:36:59 +00:00

15 lines
334 B
YAML

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
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/*"