docs: clarify mnd ignore usage examples to be regexps (#3805)

This commit is contained in:
Ville Skyttä 2023-04-26 18:22:31 +03:00 committed by GitHub
parent 66ac4b5570
commit 6a83dd7725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,15 +702,15 @@ linters-settings:
# Values always ignored: `.+_test.go`
# Default: []
ignored-files:
- 'magic1_.*.go'
- 'magic1_.+\.go$'
# List of function patterns to exclude from analysis.
# Following functions are always ignored: `time.Date`,
# `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
# `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
# Default: []
ignored-functions:
- 'math.*'
- 'http.StatusText'
- '^math\.'
- '^http\.StatusText$'
gomoddirectives:
# Allow local `replace` directives.