golangci: update gomnd config

This commit is contained in:
yyforyongyu 2022-10-25 19:13:22 +08:00
parent 60da823396
commit b68ac6acdc
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868

View file

@ -78,6 +78,22 @@ linters-settings:
# so no return split required.
block-size: 3
gomnd:
# List of numbers to exclude from analysis.
# The numbers should be written as string.
# Values always ignored: "1", "1.0", "0" and "0.0"
# Default: []
ignored-numbers:
- '0666'
- '0755'
# List of function patterns to exclude from analysis.
# Values always ignored: `time.Date`
# Default: []
ignored-functions:
- 'math.*'
- 'strconv.ParseInt'
linters:
enable-all: true