teleport/.golangci.yml
Noah Stride 02b4f8575f
Configure linter to catch British 🇬🇧 spellings 🇺🇸 🦅 📖 (#14363)
* configure golangci-lint misspell to check for anglicized spellings

* Americanize spellings

* fix aws constant value with british spelling 🇬🇧

* update api types with americanized spellings

* use american spellings .cloudbuild/scripts
2022-07-14 10:51:23 +00:00

48 lines
991 B
YAML

issues:
exclude-rules:
- linters:
- gosimple
text: "S1002: should omit comparison to bool constant"
- linters:
- revive
text: "exported: exported const"
exclude-use-default: true
max-same-issues: 0
max-issues-per-linter: 0
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- goimports
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- structcheck
- unused
- unconvert
- varcheck
linters-settings:
depguard:
list-type: denylist
include-go-root: true # check against stdlib
packages-with-error-message:
- io/ioutil: 'use "io" or "os" packages instead'
- github.com/siddontang/go/log: 'use "github.com/sirupsen/logrus" instead'
- github.com/siddontang/go-log/log: 'use "github.com/sirupsen/logrus" instead'
misspell:
locale: US
output:
uniq-by-line: false
run:
skip-dirs-use-default: false
timeout: 5m
go: '1.18'