diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 522decf..598ed4c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 \ No newline at end of file + args: --timeout 2m --config .golangci.yaml diff --git a/.golangci.yaml b/.golangci.yaml index 5aaed94..3feca72 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,6 +1,6 @@ linters-settings: govet: - check-shadowing: true + shadow: true golint: min-confidence: 0 maligned: @@ -16,8 +16,6 @@ linters: disable-all: true enable: - bodyclose - - deadcode - - depguard - dogsled - dupl - errcheck @@ -25,27 +23,23 @@ linters: - 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 diff --git a/pkg/cmd/init/init.go b/pkg/cmd/init/init.go index 519e2cd..6d7cff2 100644 --- a/pkg/cmd/init/init.go +++ b/pkg/cmd/init/init.go @@ -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() }, }