Skip to content

Commit

Permalink
Merge pull request #25 from Wabri/fix/lint
Browse files Browse the repository at this point in the history
fix(workflows): update version of golangci-lint-action
  • Loading branch information
Wabri authored Aug 1, 2024
2 parents 72c6f14 + a5e55ec commit de536c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v6
with:
version: latest
only-new-issues: false
args: --timeout 2m --config .golangci.yaml
args: --timeout 2m --config .golangci.yaml
12 changes: 3 additions & 9 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
linters-settings:
govet:
check-shadowing: true
shadow: true
golint:
min-confidence: 0
maligned:
Expand All @@ -16,36 +16,30 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- goconst
- gocritic
- gofmt
- goimports
- golint
- revive
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- misspell
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- maligned
- exportloopref

service:
golangci-lint-version: 1.33.x
2 changes: 1 addition & 1 deletion pkg/cmd/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func NewCmdInit() *cobra.Command {
cmd := &cobra.Command{
Use: "init [flags]",
Short: "Initialize daje on your system",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, args []string) error { //nolint:all
return submitAction()
},
}
Expand Down

0 comments on commit de536c9

Please sign in to comment.