mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
ae4f6aa662
The PR replaces usages of `fmt.Errorf` with `errors.New` for creating errors. Enables `perfsprint` linter to prevent future regressions.
91 lines
1.8 KiB
YAML
91 lines
1.8 KiB
YAML
run:
|
|
go: "1.23"
|
|
timeout: 5m
|
|
linters:
|
|
enable:
|
|
- copyloopvar
|
|
- thelper
|
|
- gofumpt
|
|
- bodyclose
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- wastedassign
|
|
- revive
|
|
- forbidigo
|
|
- tagliatelle
|
|
- misspell
|
|
- depguard
|
|
- testifylint
|
|
- gocritic
|
|
- nolintlint
|
|
- noctx
|
|
- perfsprint
|
|
linters-settings:
|
|
gocritic:
|
|
disabled-checks:
|
|
- appendAssign
|
|
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"
|
|
perfsprint:
|
|
int-conversion: false
|
|
err-error: false
|
|
errorf: true
|
|
sprintf1: false
|
|
strconcat: false
|
|
revive:
|
|
enable-all-rules: false
|
|
rules:
|
|
- name: blank-imports
|
|
- name: context-as-argument
|
|
- name: context-keys-type
|
|
- name: comment-spacings
|
|
- name: dot-imports
|
|
- name: empty-block
|
|
- name: empty-lines
|
|
- name: error-naming
|
|
- name: error-return
|
|
- name: error-strings
|
|
- name: errorf
|
|
- name: exported
|
|
- name: increment-decrement
|
|
- name: indent-error-flow
|
|
- name: package-comments
|
|
- name: range
|
|
- name: receiver-naming
|
|
- name: redefines-builtin-id
|
|
- name: superfluous-else
|
|
- name: time-naming
|
|
- name: unexported-return
|
|
- name: unreachable-code
|
|
- name: unused-parameter
|
|
- name: var-declaration
|
|
- name: var-naming
|
|
testifylint:
|
|
enable-all: true
|
|
disable:
|
|
- error-is-as # false positive
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- noctx
|
|
- perfsprint
|