mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-06 03:13:48 +02:00
6505654c86
The PR enables [`nolintlint`](https://golangci-lint.run/usage/linters/#nolintlint) linter and fixes up appeared issues. Changes: - Enable `nolintlint` in `.golangci.yml` config. - Remove unused `//nolint:` comments. - Fix `nolint` comment format by removing spaces (`// nolint: dupl` -> `//nolint:dupl`) Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
46 lines
746 B
YAML
46 lines
746 B
YAML
run:
|
|
go: "1.22"
|
|
timeout: 5m
|
|
linters:
|
|
enable:
|
|
- copyloopvar
|
|
- thelper
|
|
- gofumpt
|
|
- bodyclose
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- wastedassign
|
|
- revive
|
|
- forbidigo
|
|
- tagliatelle
|
|
- misspell
|
|
- depguard
|
|
- testifylint
|
|
- gocritic
|
|
- nolintlint
|
|
linters-settings:
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
- "-SA1019"
|
|
forbidigo:
|
|
forbid:
|
|
- 'ioutil\.*'
|
|
tagliatelle:
|
|
case:
|
|
use-field-name: false
|
|
rules:
|
|
yaml: snake
|
|
json: snake
|
|
depguard:
|
|
rules:
|
|
main:
|
|
deny:
|
|
- pkg: "github.com/pkg/errors"
|
|
desc: "use stdlib instead"
|
|
testifylint:
|
|
enable-all: true
|
|
disable:
|
|
- error-is-as # false positive
|