Files
threshold/.semgrep/event-with-info-msg.yaml
T

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

13 lines
476 B
YAML
Raw Normal View History

2024-09-23 10:07:57 -07:00
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
rules:
- id: with-info-msg-string-interpolation
languages:
- go
severity: ERROR
message: Use of WithInfoMsg with string interpolation. WithInfoMsg expects kv
tuples.
# Source for Go string interpolation verbs:
# https://pkg.go.dev/fmt#hdr-Printing.
pattern: event.WithInfoMsg("=~/.*%(((\[\d+\])|[\d|\.|#|+|\-| |\*])*)?[s|v|q|d|T|t|b|c|o|O|x|X|U|e|E|f|F|g|G|p].*/",...)