Skip to content

Commit de536c9

Browse files
authored
Merge pull request #25 from Wabri/fix/lint
fix(workflows): update version of golangci-lint-action
2 parents 72c6f14 + a5e55ec commit de536c9

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v2
2424
- name: Run golangci-lint
25-
uses: golangci/golangci-lint-action@v2
25+
uses: golangci/golangci-lint-action@v6
2626
with:
2727
version: latest
2828
only-new-issues: false
29-
args: --timeout 2m --config .golangci.yaml
29+
args: --timeout 2m --config .golangci.yaml

.golangci.yaml

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
linters-settings:
22
govet:
3-
check-shadowing: true
3+
shadow: true
44
golint:
55
min-confidence: 0
66
maligned:
@@ -16,36 +16,30 @@ linters:
1616
disable-all: true
1717
enable:
1818
- bodyclose
19-
- deadcode
20-
- depguard
2119
- dogsled
2220
- dupl
2321
- errcheck
2422
- goconst
2523
- gocritic
2624
- gofmt
2725
- goimports
28-
- golint
26+
- revive
2927
- goprintffuncname
3028
- gosec
3129
- gosimple
3230
- govet
3331
- ineffassign
34-
- interfacer
3532
- misspell
3633
- nolintlint
3734
- rowserrcheck
38-
- scopelint
3935
- staticcheck
40-
- structcheck
4136
- stylecheck
4237
- typecheck
4338
- unconvert
4439
- unparam
4540
- unused
46-
- varcheck
4741
- whitespace
48-
- maligned
42+
- exportloopref
4943

5044
service:
5145
golangci-lint-version: 1.33.x

pkg/cmd/init/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func NewCmdInit() *cobra.Command {
1212
cmd := &cobra.Command{
1313
Use: "init [flags]",
1414
Short: "Initialize daje on your system",
15-
RunE: func(cmd *cobra.Command, args []string) error {
15+
RunE: func(cmd *cobra.Command, args []string) error { //nolint:all
1616
return submitAction()
1717
},
1818
}

0 commit comments

Comments
 (0)