Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / CI (pull_request) Failing after 11m17s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 23m54s
102 lines
2.2 KiB
YAML
102 lines
2.2 KiB
YAML
|
|
version: "2"
|
|
run:
|
|
concurrency: 4
|
|
linters:
|
|
enable:
|
|
- bodyclose
|
|
- depguard
|
|
- errorlint
|
|
- forcetypeassert
|
|
- gochecknoinits
|
|
- gocritic
|
|
- gosec
|
|
- misspell
|
|
- nakedret
|
|
- revive
|
|
- sqlclosecheck
|
|
- wastedassign
|
|
disable:
|
|
- noctx
|
|
- unparam
|
|
settings:
|
|
depguard:
|
|
rules:
|
|
main:
|
|
list-mode: lax
|
|
allow:
|
|
- tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview
|
|
- github.com/hashicorp/terraform-plugin-framework
|
|
- github.com/hashicorp/terraform-plugin-log
|
|
- github.com/stackitcloud/stackit-sdk-go
|
|
deny:
|
|
- pkg: github.com/stretchr/testify
|
|
desc: Do not use a testing framework
|
|
gocritic:
|
|
disabled-checks:
|
|
- wrapperFunc
|
|
- typeDefFirst
|
|
- ifElseChain
|
|
- dupImport
|
|
- hugeParam
|
|
enabled-tags:
|
|
- performance
|
|
- style
|
|
- experimental
|
|
gosec:
|
|
excludes:
|
|
- G104
|
|
- G102
|
|
- G304
|
|
- G307
|
|
misspell:
|
|
locale: US
|
|
nakedret:
|
|
max-func-lines: 0
|
|
revive:
|
|
severity: error
|
|
rules:
|
|
- name: errorf
|
|
- name: context-as-argument
|
|
- name: error-return
|
|
- name: increment-decrement
|
|
- name: indent-error-flow
|
|
- name: superfluous-else
|
|
- name: unused-parameter
|
|
- name: unreachable-code
|
|
- name: atomic
|
|
- name: empty-lines
|
|
- name: early-return
|
|
exclusions:
|
|
generated: lax
|
|
warn-unused: true
|
|
# Excluding configuration per-path, per-linter, per-text and per-source.
|
|
rules:
|
|
# Exclude some linters from running on tests files.
|
|
- path: _test\.go
|
|
linters:
|
|
- gochecknoinits
|
|
paths:
|
|
- third_party/
|
|
- builtin/
|
|
- examples/
|
|
- tools/copy.go
|
|
- tools/main.go
|
|
- pkg_gen/
|
|
- cmd/
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party/
|
|
- builtin/
|
|
- examples/
|
|
- pkg_gen/
|
|
- cmd/
|