Skip to content

Commit d8729d7

Browse files
committed
Update disable-all golangci property to new syntax
Signed-off-by: Fredrik Lönnegren <[email protected]>
1 parent f0f2d14 commit d8729d7

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.golangci.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ output:
88
path: stdout
99
colors: true
1010
linters:
11-
disable-all: true
11+
default: none
1212
enable:
1313
- errcheck # all errors checked
1414
- gosimple # simplify code
@@ -23,21 +23,21 @@ linters:
2323
- goheader # Check license headers, only checks files in current year
2424
- goimports # check imports
2525
- gocyclo # check complexity
26-
linters-settings:
27-
gocyclo:
28-
min-complexity: 30
29-
goheader:
30-
template: |-
31-
Copyright © 2022 - {{year}} SUSE LLC
32-
33-
Licensed under the Apache License, Version 2.0 (the "License");
34-
you may not use this file except in compliance with the License.
35-
You may obtain a copy of the License at
36-
37-
http://www.apache.org/licenses/LICENSE-2.0
38-
39-
Unless required by applicable law or agreed to in writing, software
40-
distributed under the License is distributed on an "AS IS" BASIS,
41-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42-
See the License for the specific language governing permissions and
43-
limitations under the License.
26+
settings:
27+
gocyclo:
28+
min-complexity: 30
29+
goheader:
30+
template: |-
31+
Copyright © 2022 - {{year}} SUSE LLC
32+
33+
Licensed under the Apache License, Version 2.0 (the "License");
34+
you may not use this file except in compliance with the License.
35+
You may obtain a copy of the License at
36+
37+
http://www.apache.org/licenses/LICENSE-2.0
38+
39+
Unless required by applicable law or agreed to in writing, software
40+
distributed under the License is distributed on an "AS IS" BASIS,
41+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42+
See the License for the specific language governing permissions and
43+
limitations under the License.

0 commit comments

Comments
 (0)