Skip to content

Commit

Permalink
sync with provider-aws
Browse files Browse the repository at this point in the history
  • Loading branch information
jaylevin authored May 8, 2024
1 parent 46b9d15 commit 4bb50fa
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
run:
deadline: 10m
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# 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:
Expand All @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bb50fa

Please sign in to comment.