1- run :
2- timeout : 15m0s
1+ version : " 2"
32linters :
43 enable :
54 - containedctx
@@ -10,7 +9,6 @@ linters:
109 - fatcontext
1110 - ginkgolinter
1211 - gocritic
13- - goimports
1412 - gosec
1513 - loggercheck
1614 - mirror
@@ -25,96 +23,106 @@ linters:
2523 - testifylint
2624 - unconvert
2725 - whitespace
28- linters-settings :
29- exhaustive :
30- default-signifies-exhaustive : true
31- goimports :
32- local-prefixes : github.com/smartcontractkit/chainlink
33- gosec :
34- excludes :
35- - G101
36- - G104
37- # - G204
38- # - G304
39- # - G404
40- govet :
41- enable :
42- - shadow
43- revive :
44- confidence : 0.8
45- rules :
46- - name : blank-imports
47- - name : context-as-argument
48- - name : context-keys-type
49- - name : dot-imports
50- - name : error-return
51- - name : error-strings
52- - name : error-naming
53- - name : exported
54- - name : if-return
55- - name : increment-decrement
56- - name : var-naming
57- - name : var-declaration
58- - name : package-comments
59- - name : range
60- - name : receiver-naming
61- - name : time-naming
62- # - name: unexported-return
63- - name : indent-error-flow
64- - name : errorf
65- - name : empty-block
66- - name : superfluous-else
67- # - name: unused-parameter
68- - name : unreachable-code
69- - name : redefines-builtin-id
70- - name : waitgroup-by-value
71- - name : unconditional-recursion
72- - name : struct-tag
73- # - name: string-format
74- - name : string-of-int
75- - name : range-val-address
76- - name : range-val-in-closure
77- - name : modifies-value-receiver
78- - name : modifies-parameter
79- - name : identical-branches
80- - name : get-return
81- # - name: flag-parameter
82- - name : early-return
83- - name : defer
84- - name : constant-logical-expr
85- # - name: confusing-naming
86- # - name: confusing-results
87- - name : bool-literal-in-expr
88- - name : atomic
89- depguard :
90- rules :
91- main :
92- list-mode : lax
93- deny :
94- - pkg : cosmossdk.io/errors
95- desc : Use the standard library instead
96- - pkg : github.com/gofrs/uuid
97- desc : Use github.com/google/uuid instead
98- - pkg : github.com/jackc/pgx3
99- desc : Use github.com/jackc/pgx4 instead
100- - pkg : github.com/jackc/pgx5
101- desc : Use github.com/jackc/pgx4 instead
102- - pkg : github.com/satori/go.uuid
103- desc : Use github.com/google/uuid instead
104- - pkg : github.com/test-go/testify/assert
105- desc : Use github.com/stretchr/testify/assert instead
106- - pkg : github.com/test-go/testify/mock
107- desc : Use github.com/stretchr/testify/mock instead
108- - pkg : github.com/test-go/testify/require
109- desc : Use github.com/stretchr/testify/require instead
110- # TODO https://smartcontract-it.atlassian.net/browse/BCI-2589
111- # - pkg: go.uber.org/multierr
112- # desc: Use the standard library instead, for example https://pkg.go.dev/errors#Join
113- - pkg : gopkg.in/guregu/null.v1
114- desc : Use gopkg.in/guregu/null.v4 instead
115- - pkg : gopkg.in/guregu/null.v2
116- desc : Use gopkg.in/guregu/null.v4 instead
117- - pkg : gopkg.in/guregu/null.v3
118- desc : Use gopkg.in/guregu/null.v4 instead
119- - pkg : github.com/go-gorm/gorm
120- desc : Use github.com/jmoiron/sqlx directly instead
26+ settings :
27+ depguard :
28+ rules :
29+ main :
30+ list-mode : lax
31+ deny :
32+ - pkg : cosmossdk.io/errors
33+ desc : Use the standard library instead
34+ - pkg : github.com/gofrs/uuid
35+ desc : Use github.com/google/uuid instead
36+ - pkg : github.com/jackc/pgx3
37+ desc : Use github.com/jackc/pgx4 instead
38+ - pkg : github.com/jackc/pgx5
39+ desc : Use github.com/jackc/pgx4 instead
40+ - pkg : github.com/satori/go.uuid
41+ desc : Use github.com/google/uuid instead
42+ - pkg : github.com/test-go/testify/assert
43+ desc : Use github.com/stretchr/testify/assert instead
44+ - pkg : github.com/test-go/testify/mock
45+ desc : Use github.com/stretchr/testify/mock instead
46+ - pkg : github.com/test-go/testify/require
47+ desc : Use github.com/stretchr/testify/require instead
48+ - pkg : gopkg.in/guregu/null.v1
49+ desc : Use gopkg.in/guregu/null.v4 instead
50+ - pkg : gopkg.in/guregu/null.v2
51+ desc : Use gopkg.in/guregu/null.v4 instead
52+ - pkg : gopkg.in/guregu/null.v3
53+ desc : Use gopkg.in/guregu/null.v4 instead
54+ - pkg : github.com/go-gorm/gorm
55+ desc : Use github.com/jmoiron/sqlx directly instead
56+ exhaustive :
57+ default-signifies-exhaustive : true
58+ gosec :
59+ excludes :
60+ - G101
61+ - G104
62+ govet :
63+ enable :
64+ - shadow
65+ revive :
66+ confidence : 0.8
67+ rules :
68+ - name : blank-imports
69+ - name : context-as-argument
70+ - name : context-keys-type
71+ - name : dot-imports
72+ - name : error-return
73+ - name : error-strings
74+ - name : error-naming
75+ - name : exported
76+ - name : if-return
77+ - name : increment-decrement
78+ - name : var-naming
79+ - name : var-declaration
80+ - name : package-comments
81+ - name : range
82+ - name : receiver-naming
83+ - name : time-naming
84+ - name : indent-error-flow
85+ - name : errorf
86+ - name : empty-block
87+ - name : superfluous-else
88+ - name : unreachable-code
89+ - name : redefines-builtin-id
90+ - name : waitgroup-by-value
91+ - name : unconditional-recursion
92+ - name : struct-tag
93+ - name : string-of-int
94+ - name : range-val-address
95+ - name : range-val-in-closure
96+ - name : modifies-value-receiver
97+ - name : modifies-parameter
98+ - name : identical-branches
99+ - name : get-return
100+ - name : early-return
101+ - name : defer
102+ - name : constant-logical-expr
103+ - name : bool-literal-in-expr
104+ - name : atomic
105+ exclusions :
106+ generated : lax
107+ presets :
108+ - comments
109+ - common-false-positives
110+ - legacy
111+ - std-error-handling
112+ paths :
113+ - third_party$
114+ - builtin$
115+ - examples$
116+ formatters :
117+ enable :
118+ - goimports
119+ settings :
120+ goimports :
121+ local-prefixes :
122+ - github.com/smartcontractkit/chainlink
123+ exclusions :
124+ generated : lax
125+ paths :
126+ - third_party$
127+ - builtin$
128+ - examples$
0 commit comments