File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 21
21
uses : actions/setup-go@v5
22
22
with :
23
23
go-version-file : go.mod
24
+ - name : Check linter configuration
25
+ run : make lint-config
24
26
- name : Run linter
25
27
uses : golangci/golangci-lint-action@v6
26
28
with :
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ issues:
17
17
- gosec
18
18
19
19
linters-settings :
20
- govet :
21
- enable=fieldalignment : true
22
20
revive :
23
21
rules :
24
22
# The following rules are recommended https://github.com/mgechev/revive#recommended-configuration
@@ -28,9 +26,9 @@ linters-settings:
28
26
- name : dot-imports
29
27
arguments :
30
28
# dot import should be ONLY allowed for ginkgo testing packages
31
- allowedPackages :
32
- - " github.com/onsi/ginkgo/v2"
33
- - " github.com/onsi/gomega"
29
+ - allowedPackages :
30
+ - " github.com/onsi/ginkgo/v2"
31
+ - " github.com/onsi/gomega"
34
32
- name : error-return
35
33
- name : error-strings
36
34
- name : error-naming
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ lint: golangci-lint yamllint ## Run golangci-lint linter & yamllint
105
105
lint-fix : golangci-lint # # Run golangci-lint linter and perform fixes
106
106
$(GOLANGCI_LINT ) run --fix
107
107
108
+ .PHONY : lint-config
109
+ lint-config : golangci-lint # # Verify golangci-lint linter configuration
110
+ $(GOLANGCI_LINT ) config verify
111
+
108
112
.PHONY : yamllint
109
113
yamllint :
110
114
@files=$$(find testdata -name '*.yaml' ! -path 'testdata/*/dist/*' ) ; \
You can’t perform that action at this time.
0 commit comments