diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-05-02 18:27:44 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-05-02 18:27:44 +0300 |
commit | 52e8043921ae31d31e40665902600f97a9f60d9f (patch) | |
tree | 6d5e7037635076703b77d78d6c544d02493cf366 /.golangci.yml | |
parent | 7c999a3c3411ce6b62cc7fba97f29343c9ef7806 (diff) |
Add nolintlint linter configuration
Require an explanation for nolint rules and warn about
unused rules
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index 3b472def..795ee62b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -37,6 +37,16 @@ linters-settings: min-occurrences: 3 goimports: local-prefixes: gitlab.com/gitlab-org/gitlab-pages + nolintlint: + # Disable to ensure that all nolint directives actually have an effect. + # Default: false + allow-unused: false + # Enable to require an explanation of nonzero length after each nolint directive. + # Default: false + require-explanation: true + # Enable to require nolint directives to mention the specific linter being suppressed. + # Default: false + require-specific: true staticcheck: # Select the Go version to target. # Default: 1.13 |