Skip to content

Commit c0364d4

Browse files
butuzovSeigeC
authored andcommitted
docs: updates usage settings for go-mnd (golangci#2476)
1 parent 2a4e535 commit c0364d4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Diff for: .golangci.example.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,17 @@ linters-settings:
414414
settings:
415415
mnd:
416416
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
417-
checks: argument,case,condition,operation,return,assign
418-
# ignored-numbers: 1000
419-
# ignored-files: magic_.*.go
420-
# ignored-functions: math.*
417+
checks:
418+
- argument
419+
- case
420+
- condition
421+
- operation
422+
- return
423+
- assign
424+
# Next settings are expecting comma separated string values
425+
ignored-numbers: "0666,0755,42" # values always ignored: 1, 1.0, 0 and 0.0
426+
ignored-files: "magic1_.*.go" # values always ignored:_test.go
427+
ignored-functions: "math.*,http.StatusText,make" # values always ignored: time.Time
421428

422429
gomoddirectives:
423430
# Allow local `replace` directives. Default is false.

0 commit comments

Comments
 (0)