Skip to content

Commit 6a83dd7

Browse files
authored
docs: clarify mnd ignore usage examples to be regexps (#3805)
1 parent 66ac4b5 commit 6a83dd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.golangci.reference.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,15 +702,15 @@ linters-settings:
702702
# Values always ignored: `.+_test.go`
703703
# Default: []
704704
ignored-files:
705-
- 'magic1_.*.go'
705+
- 'magic1_.+\.go$'
706706
# List of function patterns to exclude from analysis.
707707
# Following functions are always ignored: `time.Date`,
708708
# `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
709709
# `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
710710
# Default: []
711711
ignored-functions:
712-
- 'math.*'
713-
- 'http.StatusText'
712+
- '^math\.'
713+
- '^http\.StatusText$'
714714

715715
gomoddirectives:
716716
# Allow local `replace` directives.

0 commit comments

Comments
 (0)