Skip to content

Commit 03c867c

Browse files
some changes
1 parent cffbba5 commit 03c867c

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.golangci.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,19 @@ linters:
7878
rules:
7979
- name: package-comments
8080
disabled: true
81-
nolintlint:
82-
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
83-
allow-unused: false # report any unused nolint directives
84-
require-explanation: false # don't require an explanation for nolint directives
85-
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
81+
exclusions:
82+
rules:
83+
- path: _test\.go
84+
linters:
85+
- mnd
86+
- scopelint
87+
paths:
88+
- assets
89+
- docs
90+
- vendor
91+
- pkg/parser/jsonfilter/parser
92+
- pkg/parser/bicep/antlr
93+
8694
formatters:
8795
enable:
8896
- gofmt
@@ -92,19 +100,6 @@ formatters:
92100
local-prefixes:
93101
- github.com/golangci/golangci-lint
94102

95-
issues:
96-
# Excluding configuration per-path, per-linter, per-text and per-source
97-
exclude-rules:
98-
- path: _test\.go
99-
linters:
100-
- mnd
101-
- scopelint
102-
exclude-dirs:
103-
- assets
104-
- docs
105-
- vendor
106-
- pkg/parser/jsonfilter/parser
107-
- pkg/parser/bicep/antlr
108103
run:
109104
timeout: 5m
110105
tests: false

0 commit comments

Comments
 (0)