1
- run :
2
- timeout : 10m
3
- skip-files :
4
- - " zz_generated.*.go"
5
-
6
- linters-settings :
7
- exhaustive :
8
- check-generated : false
9
- default-signifies-exhaustive : true
10
-
11
- lll :
12
- line-length : 150
13
- gomodguard :
14
- blocked :
15
- modules :
16
- - github.com/go-logr/logr :
17
- recommendations :
18
- - k8s.io/klog/v2
19
- gci :
20
- sections :
21
- - standard # Captures all standard packages if they do not match another section.
22
- - default # Contains all imports that could not be matched to another section type.
23
- - prefix(github.com/liqotech) # Groups all imports with the specified Prefix.
24
- goconst :
25
- min-len : 2
26
- min-occurrences : 2
27
- gocritic :
28
- enabled-tags :
29
- - diagnostic
30
- - experimental
31
- - opinionated
32
- - performance
33
- - style
34
- disabled-checks :
35
- # Conflicts with govet check-shadowing
36
- - sloppyReassign
37
- goimports :
38
- local-prefixes : github.com/liqotech
39
- govet :
40
- check-shadowing : true
41
- misspell :
42
- locale : US
43
- nolintlint :
44
- allow-leading-space : true # don't require machine-readable nolint directives (i.e. with no leading space)
45
- allow-unused : false # report any unused nolint directives
46
- require-explanation : true # require an explanation for nolint directives
47
- require-specific : true # require nolint directives to be specific about which linter is being skipped
48
- dupl :
49
- threshold : 300
50
-
1
+ version : " 2"
51
2
linters :
52
- disable-all : true
3
+ default : none
53
4
enable :
54
5
- asciicheck
55
6
- bodyclose
56
- - depguard
7
+ - copyloopvar
57
8
- dogsled
58
9
- dupl
59
10
- errcheck
60
11
- errorlint
61
12
- exhaustive
62
- - exportloopref
63
- # - funlen
64
- # - gochecknoglobals
65
- # - gochecknoinits
66
- # - gocognit
67
- - gci
68
13
- goconst
69
14
- gocritic
70
15
- gocyclo
71
16
- godot
72
- # - godox
73
- # - goerr113
74
- - gofmt
75
17
- goheader
76
- - goimports
77
18
- gomodguard
78
- # - gomnd
79
19
- goprintffuncname
80
20
- gosec
81
- - gosimple
82
21
- govet
83
22
- ineffassign
84
23
- lll
85
- # - maligned
86
24
- misspell
87
25
- nakedret
88
- # - nestif
89
26
- noctx
90
- - nolintlint
91
- # - prealloc
27
+ # - nolintlint
92
28
- revive
93
29
- rowserrcheck
94
30
- staticcheck
95
- - stylecheck
96
- # - testpackage
97
- - typecheck
98
31
- unconvert
99
32
- unparam
100
33
- unused
101
34
- whitespace
102
- # - wsl
35
+ settings :
36
+ dupl :
37
+ threshold : 300
38
+ exhaustive :
39
+ default-signifies-exhaustive : true
40
+ goconst :
41
+ min-len : 2
42
+ min-occurrences : 2
43
+ gocritic :
44
+ disabled-checks :
45
+ - sloppyReassign
46
+ enabled-tags :
47
+ - diagnostic
48
+ - experimental
49
+ - opinionated
50
+ - performance
51
+ - style
52
+ goheader :
53
+ values :
54
+ const :
55
+ AUTHORS : The Liqo Authors
56
+ template : |-
57
+ Copyright 2019-{{ YEAR }} {{ AUTHORS }}
103
58
104
- issues :
105
- # fix: true
59
+ Licensed under the Apache License, Version 2.0 (the "License");
60
+ you may not use this file except in compliance with the License.
61
+ You may obtain a copy of the License at
62
+
63
+ http://www.apache.org/licenses/LICENSE-2.0
106
64
65
+ Unless required by applicable law or agreed to in writing, software
66
+ distributed under the License is distributed on an "AS IS" BASIS,
67
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68
+ See the License for the specific language governing permissions and
69
+ limitations under the License.
70
+ gomodguard :
71
+ blocked :
72
+ modules :
73
+ - github.com/go-logr/logr :
74
+ recommendations :
75
+ - k8s.io/klog/v2
76
+ govet :
77
+ enable :
78
+ - shadow
79
+ - nilness
80
+ - nilfunc
81
+ lll :
82
+ line-length : 150
83
+ misspell :
84
+ locale : US
85
+ nolintlint :
86
+ require-explanation : true
87
+ require-specific : true
88
+ allow-unused : false
89
+ exclusions :
90
+ generated : lax
91
+ rules :
92
+ - linters :
93
+ - govet
94
+ text : declaration of "(err|ctx)" shadows declaration at
95
+ - linters :
96
+ - gosec
97
+ # Disable the check to test that HTTP clients are not using an insecure TLS connection.
98
+ # We need it to contact the remote authentication services exposing a self-signed certificate
99
+ text : TLS InsecureSkipVerify set true.
100
+ - linters :
101
+ - errorlint
102
+ # Disable the check to test errors type assertion on switches.
103
+ text : type switch on error will fail on wrapped errors. Use errors.As to check for specific errors
104
+ - linters :
105
+ - revive
106
+ - whitespace
107
+ path : _test\.go
108
+ - path : (.+)\.go$
109
+ # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
110
+ text : Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
111
+ paths :
112
+ - zz_generated.*.go
113
+ - pkg/client
114
+ - third_party$
115
+ - builtin$
116
+ - examples$
117
+ issues :
107
118
max-issues-per-linter : 0
108
119
max-same-issues : 0
109
-
110
- # Disable the default exclude patterns (as they disable the mandatory comments)
111
- exclude-use-default : false
112
- exclude :
113
- # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
114
- - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
115
-
116
- exclude-rules :
117
- - linters :
118
- - govet
119
- text : ' declaration of "(err|ctx)" shadows declaration at'
120
- - linters :
121
- - gosec
122
- # Disable the check to test that HTTP clients are not using an insecure TLS connection.
123
- # We need it to contact the remote authentication services exposing a self-signed certificate
124
- text : TLS InsecureSkipVerify set true.
125
- - linters :
126
- - errorlint
127
- # Disable the check to test errors type assertion on switches.
128
- text : type switch on error will fail on wrapped errors. Use errors.As to check for specific errors
129
-
130
- # Exclude the following linters from running on tests files.
131
- - path : _test\.go
132
- linters :
133
- - whitespace
120
+ formatters :
121
+ enable :
122
+ - gci
123
+ - gofmt
124
+ - goimports
125
+ settings :
126
+ gci :
127
+ sections :
128
+ - standard # Captures all standard packages if they do not match another section.
129
+ - default # Contains all imports that could not be matched to another section type.
130
+ - prefix(github.com/liqotech/liqo-terraform-provider) # Groups all imports with the specified Prefix.
131
+ goimports :
132
+ local-prefixes :
133
+ - github.com/liqotech/liqo-terraform-provider
134
+ exclusions :
135
+ generated : lax
136
+ paths :
137
+ - zz_generated.*.go
138
+ - pkg/client
139
+ - third_party$
140
+ - builtin$
141
+ - examples$
0 commit comments