2022-07-02 18:45:50 +02:00
|
|
|
run:
|
|
|
|
concurrency: 2
|
2022-08-12 15:05:52 +02:00
|
|
|
timeout: 10m
|
2020-05-04 23:00:21 +02:00
|
|
|
linters:
|
|
|
|
enable-all: false
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2022-06-28 03:18:40 +02:00
|
|
|
- depguard
|
2020-05-04 23:00:21 +02:00
|
|
|
- errcheck
|
2023-09-26 00:57:12 +02:00
|
|
|
- errorlint
|
2022-07-13 01:00:36 +02:00
|
|
|
- gocritic
|
2020-05-04 23:00:21 +02:00
|
|
|
- gocyclo
|
2024-12-17 12:16:33 +01:00
|
|
|
- gofumpt
|
2020-05-04 23:00:21 +02:00
|
|
|
- goimports
|
2022-11-07 20:07:41 +01:00
|
|
|
- gomodguard
|
2021-05-19 17:00:13 +02:00
|
|
|
- revive
|
2020-05-04 23:00:21 +02:00
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- lll
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
2022-08-09 22:43:58 +02:00
|
|
|
- nolintlint
|
2020-05-04 23:00:21 +02:00
|
|
|
- staticcheck
|
2024-04-24 10:25:39 +02:00
|
|
|
- testifylint
|
2020-05-04 23:00:21 +02:00
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
linters-settings:
|
2022-09-06 23:59:11 +02:00
|
|
|
revive:
|
|
|
|
rules:
|
|
|
|
- name: package-comments
|
|
|
|
disabled: true
|
2022-06-28 03:18:40 +02:00
|
|
|
depguard:
|
2023-06-06 22:31:41 +02:00
|
|
|
rules:
|
|
|
|
all:
|
|
|
|
deny:
|
|
|
|
- pkg: io/ioutil
|
|
|
|
desc: 'io/ioutil package has been deprecated'
|
2023-09-11 17:53:19 +02:00
|
|
|
- pkg: gopkg.in/yaml.v2
|
|
|
|
desc: 'compose-go uses yaml.v3'
|
2022-11-07 20:07:41 +01:00
|
|
|
gomodguard:
|
|
|
|
blocked:
|
2023-09-26 00:57:12 +02:00
|
|
|
modules:
|
|
|
|
- github.com/pkg/errors:
|
|
|
|
recommendations:
|
|
|
|
- errors
|
|
|
|
- fmt
|
2022-11-07 20:07:41 +01:00
|
|
|
versions:
|
2023-09-11 17:53:19 +02:00
|
|
|
- github.com/distribution/distribution:
|
|
|
|
reason: "use distribution/reference"
|
2022-11-07 20:07:41 +01:00
|
|
|
- gotest.tools:
|
|
|
|
version: "< 3.0.0"
|
|
|
|
reason: "deprecated, pre-modules version"
|
2022-07-13 02:23:33 +02:00
|
|
|
gocritic:
|
|
|
|
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
|
|
|
|
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
|
|
|
|
enabled-tags:
|
|
|
|
- diagnostic
|
2022-07-13 02:53:08 +02:00
|
|
|
- opinionated
|
2022-07-13 03:10:48 +02:00
|
|
|
- style
|
2022-07-13 02:53:08 +02:00
|
|
|
disabled-checks:
|
|
|
|
- paramTypeCombine
|
|
|
|
- unnamedResult
|
2022-07-13 03:10:48 +02:00
|
|
|
- whyNoLint
|
2020-05-04 23:00:21 +02:00
|
|
|
gocyclo:
|
|
|
|
min-complexity: 16
|
|
|
|
lll:
|
|
|
|
line-length: 200
|
|
|
|
issues:
|
2020-05-04 23:50:00 +02:00
|
|
|
# golangci hides some golint warnings (the warning about exported things
|
2024-09-07 23:01:35 +02:00
|
|
|
# without documentation for example), this will make it show them anyway.
|
2020-05-04 23:50:00 +02:00
|
|
|
exclude-use-default: false
|
2024-04-24 10:25:39 +02:00
|
|
|
# Maximum issues count per one linter.
|
|
|
|
# Set to 0 to disable.
|
|
|
|
# Default: 50
|
|
|
|
max-issues-per-linter: 0
|
|
|
|
# Maximum count of issues with the same text.
|
|
|
|
# Set to 0 to disable.
|
|
|
|
# Default: 3
|
|
|
|
max-same-issues: 0
|