1
1
linters-settings :
2
- goerr113 :
3
- # ignore all test files
4
- check-test-files : false
5
2
funlen :
6
3
lines : 70
7
- revive :
8
- naming :
9
- ignore :
10
- - " ^[A-Z][a-z].*$"
4
+ # revive:
5
+ # enable-all-rules: true
6
+ # rules:
7
+ # - name: line-length-limit
8
+ # severity: warning
9
+ # disabled: false
10
+ # exclude: [ "" ]
11
+ # arguments: [ 100 ]
11
12
gocyclo :
12
- skip-dirs-use-default : true
13
13
min-complexity : 20
14
14
gocognit :
15
15
min-complexity : 45
16
- govet :
17
- min-confidence : 0.8
18
- exclude-use-default : true
19
- include :
20
- - " **/*.go"
21
- max-issues-per-linter : 0
22
- max-same-issues : 0
23
- deadline : 120s
24
- go :
25
- # specify the Go version to use for linting
26
- # for example, "1.16" or "1.17"
27
- # if this value is not specified, the latest version of Go is used
28
- # if the specified version is not available, the latest version of Go will be used
29
- version : " 1.20"
30
-
31
- gosimple :
32
- # gosimple reports simplification opportunities in Go code
33
- # it helps to identify code that can be made simpler and easier to understand
34
- # this linter is particularly useful for identifying redundant code
35
- # and can help to reduce the size and complexity of your codebase
36
- # for more information, see https://github.com/dominikh/go-simple
37
16
issues :
38
17
exclude-rules :
39
18
# Exclude some linters from running on tests files.
@@ -43,8 +22,13 @@ issues:
43
22
- errcheck
44
23
- funlen
45
24
- goerr113
25
+ - gocognit
46
26
- dupl
47
27
- gosec
28
+ - lll
29
+ exclude-dirs :
30
+ - examples
31
+ - mocks
48
32
linters :
49
33
# enable all available linters
50
34
enable-all : true
@@ -68,10 +52,19 @@ linters:
68
52
- varnamelen
69
53
- depguard
70
54
- forbidigo
55
+ - exportloopref
71
56
72
-
73
- # specify the output format for linter results
74
- # you can choose from various formats, including plain text, JSON, and HTML
75
- # here, we are using the default plain text format
76
- output-format : colored-line-number
77
-
57
+ output :
58
+ formats :
59
+ - format : colored-line-number
60
+ path : stdout
61
+ sort-results : true
62
+ sort-order :
63
+ - linter
64
+ - severity
65
+ - file # filepath, line, and column.
66
+ show-stats : true
67
+ run :
68
+ go : ' 1.23'
69
+ concurrency : 5
70
+ timeout : 5m
0 commit comments