mirror of
https://github.com/charmbracelet/gum.git
synced 2024-11-05 05:46:36 +03:00
66993d8ef1
* chore: add linter configs & workflows * fix: ignore certain linter warnings * fix: mark errors as intentionally ignored * fix: avoid unnecessary conversion * fix: handle template/renderer errors * fix: mark intentionally unused code
48 lines
696 B
YAML
48 lines
696 B
YAML
run:
|
|
tests: false
|
|
|
|
issues:
|
|
include:
|
|
- EXC0001
|
|
- EXC0005
|
|
- EXC0011
|
|
- EXC0012
|
|
- EXC0013
|
|
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
|
|
linters:
|
|
enable:
|
|
# - dupl
|
|
- exhaustive
|
|
# - exhaustivestruct
|
|
- goconst
|
|
- godot
|
|
- godox
|
|
- gomnd
|
|
- gomoddirectives
|
|
- goprintffuncname
|
|
- ifshort
|
|
# - lll
|
|
- misspell
|
|
- nakedret
|
|
- nestif
|
|
- noctx
|
|
- nolintlint
|
|
- prealloc
|
|
- wrapcheck
|
|
|
|
# disable default linters, they are already enabled in .golangci.yml
|
|
disable:
|
|
- deadcode
|
|
- errcheck
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- structcheck
|
|
- typecheck
|
|
- unused
|
|
- varcheck
|