diff --git a/.golangci.yml b/.golangci.yml index e4d6c68..bf4c47c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,12 +1,16 @@ -run: - deadline: 10m +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 - skip-files: - - "zz_\\..+\\.go$" +run: + timeout: 60m + show-stats: true + concurrency: 3 output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" format: colored-line-number + print-linter-name: true linters-settings: errcheck: @@ -27,9 +31,9 @@ linters-settings: # report about shadowed variables check-shadowing: false - golint: - # minimal confidence for issues, default is 0.8 - min-confidence: 0.8 + revive: + # confidence for issues, default is 0.8 + confidence: 0.8 gofmt: # simplify code: gofmt with `-s` option, true by default @@ -38,7 +42,7 @@ linters-settings: goimports: # put imports beginning with prefix after 3rd-party packages; # it's a comma-separated list of prefixes - local-prefixes: github.com/upbound/upjet-provider-template + local-prefixes: github.com/upbound/provider-vault gocyclo: # minimal code complexity to report, 30 by default (but we recommend 10-20) @@ -108,11 +112,12 @@ linters: - govet - gocyclo - gocritic + - interfacer - goconst - goimports - gofmt # We enable this as well as goimports for its simplify mode. - prealloc -# - golint - should we switch to revive? + - revive - unconvert - misspell - nakedret