1+ version : " 2"
2+
13run :
2- go : " 1.23 "
4+ go : " 1.24 "
35 timeout : 10m
46 tests : false
57 allow-parallel-runners : true
68 issues-exit-code : 2
79
810linters :
9- enable-all : true
11+ default : all
1012 disable :
1113 - bodyclose
1214 - containedctx # Struct should not contain context, action does.
@@ -15,18 +17,13 @@ linters:
1517 - depguard
1618 - dogsled
1719 - dupl # Check code duplications.
18- - execinquery
1920 - exhaustive # Doesn't really make sense.
2021 - exhaustruct # Doesn't really make sense.
21- - exportloopref
2222 - forcetypeassert # Priority: that can lead to serious crashes.
2323 - funlen # Break long functions.
24- - gci
2524 - gochecknoglobals
2625 - gochecknoinits # Init functions cause an import to have side effects,
2726 - err113
28- - goimports # acts weirdly, dci handles imports anyway
29- - gomnd # Give constant values a name with constants.
3027 - interfacebloat
3128 - ireturn # Accept interface, return concrate.
3229 - lll
@@ -45,75 +42,35 @@ linters:
4542 - wrapcheck
4643 - wsl
4744
48- linters-settings :
49- gci :
50- sections :
51- - standard
52- - blank
53- - dot
54- - default
55- - prefix(github.com/open-component-model/ocm)
56- custom-order : true
57- funlen :
58- lines : 110
59- statements : 60
60- cyclop :
61- max-complexity : 60
62- skip-tests : true
63- gocognit :
64- min-complexity : 60
65- nolintlint :
66- allow-unused : false
67- require-explanation : true
68- require-specific : false
69- varnamelen :
70- ignore-names :
71- - err
72- - wg
73- - id
74- lll :
75- line-length : 120
76- gosec :
77- exclude-generated : true
45+ settings :
46+ funlen :
47+ lines : 110
48+ statements : 60
49+ cyclop :
50+ max-complexity : 60
51+ gocognit :
52+ min-complexity : 60
53+ nolintlint :
54+ allow-unused : false
55+ require-explanation : true
56+ require-specific : false
57+ varnamelen :
58+ ignore-names :
59+ - err
60+ - wg
61+ - id
62+ revive :
63+ rules :
64+ - name : package-comments
65+ disabled : true
66+ - name : exported
67+ disabled : true
68+
69+ lll :
70+ line-length : 120
7871
79- issues :
80- exclude-files :
81- - v1beta1/types_jsonschema.go
82- - v1beta1/marshal.go
83- - v1beta1/marshal_test.go
84- exclude :
85- - composites
86- exclude-rules :
87- - path : cmds/
88- linters :
89- - forbidigo
90- - source : " https://"
91- linters :
92- - lll
93- - text : " shadow: declaration of \" err\" "
94- linters :
95- - govet
96- - text : " shadow: declaration of \" ok\" "
97- linters :
98- - govet
99- - path : _test\.go
100- linters :
101- - gocyclo
102- - errcheck
103- - gosec
104- - dupl
105- - funlen
106- - scopelint
107- - text : " Spec.DeepCopyInto undefined"
108- linters :
109- - typecheck
110- - text : " G601: Implicit memory aliasing in for loop"
111- # Ignored cos why not, that was the request.
112- linters :
113- - gosec
114- - source : " // .* #\\ d+"
115- linters :
116- - godox
117- - path : ignore/.*\.go
118- linters :
119- - dupword
72+ exclusions :
73+ paths :
74+ - v1beta1/types_jsonschema.go
75+ - v1beta1/marshal.go
76+ - v1beta1/marshal_test.go
0 commit comments