File tree Expand file tree Collapse file tree 2 files changed +49
-5
lines changed Expand file tree Collapse file tree 2 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ linters:
14
14
- funlen
15
15
- gochecknoglobals
16
16
- gochecknoinits
17
+ - goconst
17
18
- godox
18
19
- goerr113
19
20
- golint
20
21
- gomnd
21
22
- gosec
22
23
- ifshort
24
+ - inamedparam
23
25
- interfacer
24
26
- ireturn
25
27
- lll
@@ -29,6 +31,7 @@ linters:
29
31
- nosnakecase
30
32
- paralleltest
31
33
- prealloc
34
+ - perfsprint
32
35
- rowserrcheck
33
36
- scopelint
34
37
- structcheck
@@ -42,15 +45,56 @@ linters:
42
45
- wsl
43
46
linters-settings :
44
47
depguard :
45
- list-type : whitelist
46
- packages :
47
- - github.com/mmcloughlin/avo
48
- - golang.org/x/
48
+ rules :
49
+ main :
50
+ allow :
51
+ - github.com/mmcloughlin/avo
52
+ - golang.org/x/
53
+ - $gostd
49
54
gci :
50
55
sections :
51
56
- standard
52
57
- default
53
58
- prefix(github.com/mmcloughlin/avo)
59
+ revive :
60
+ enable-all-rules : true
61
+ rules :
62
+ - name : add-constant
63
+ disabled : true
64
+ - name : confusing-results
65
+ disabled : true
66
+ - name : cognitive-complexity
67
+ disabled : true
68
+ - name : cyclomatic
69
+ disabled : true
70
+ - name : deep-exit
71
+ disabled : true
72
+ - name : empty-block
73
+ disabled : true
74
+ - name : flag-parameter
75
+ disabled : true
76
+ - name : function-length
77
+ disabled : true
78
+ - name : if-return
79
+ disabled : true
80
+ - name : line-length-limit
81
+ disabled : true
82
+ - name : max-public-structs
83
+ disabled : true
84
+ - name : modifies-value-receiver
85
+ disabled : true
86
+ - name : unexported-naming
87
+ disabled : true
88
+ - name : unhandled-error
89
+ arguments :
90
+ - ' fmt\.(P|Fp)rint(ln|f)?'
91
+ - ' text/tabwriter\.Writer\.Flush'
92
+ - name : unused-parameter
93
+ disabled : true
94
+ - name : unused-receiver
95
+ disabled : true
96
+ - name : use-any
97
+ disabled : true
54
98
issues :
55
99
exclude-use-default : false
56
100
exclude :
Original file line number Diff line number Diff line change 4
4
go install ./internal/cmd/asmvet
5
5
6
6
# golangci-lint for linting
7
- golangci_lint_version=' v1.51 .2'
7
+ golangci_lint_version=' v1.55 .2'
8
8
golangci_install_script=" https://raw.githubusercontent.com/golangci/golangci-lint/${golangci_lint_version} /install.sh"
9
9
curl -sfL " ${golangci_install_script} " | sh -s -- -b " $( go env GOPATH) /bin" " ${golangci_lint_version} "
10
10
You can’t perform that action at this time.
0 commit comments