mirror of
https://github.com/Jguer/yay.git
synced 2025-10-05 00:08:30 -04:00
* chore(ci): update golangci-lint to v2.1.5 in ci.Dockerfile * add golangci * fix lint * fix lint pkg/upgrade * reenable lint
95 lines
1.6 KiB
YAML
95 lines
1.6 KiB
YAML
version: "2"
|
|
run:
|
|
go: "1.20"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- bodyclose
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- errorlint
|
|
- gochecknoinits
|
|
- gocritic
|
|
- goprintffuncname
|
|
- gosec
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- noctx
|
|
- nolintlint
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- whitespace
|
|
settings:
|
|
dupl:
|
|
threshold: 100
|
|
funlen:
|
|
lines: 100
|
|
statements: 50
|
|
goconst:
|
|
min-len: 3
|
|
min-occurrences: 4
|
|
gocritic:
|
|
enabled-tags:
|
|
- diagnostic
|
|
- experimental
|
|
- opinionated
|
|
- performance
|
|
- style
|
|
gocyclo:
|
|
min-complexity: 15
|
|
lll:
|
|
line-length: 140
|
|
misspell:
|
|
locale: US
|
|
nolintlint:
|
|
require-explanation: false
|
|
require-specific: false
|
|
allow-unused: false
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- dupl
|
|
- errcheck
|
|
- errorlint
|
|
- gochecknoinits
|
|
- gocritic
|
|
- godot
|
|
- govet
|
|
- lll
|
|
- revive
|
|
- staticcheck
|
|
- wsl
|
|
path: (.+)_test.go
|
|
- path: (.+)\.go$
|
|
text: G204
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/Jguer/yay/v12
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|