mirror of https://github.com/coder/coder.git
chore: Remove varnamelen linter (#854)
* chore: remove varnamelen from linting https://github.com/golang/go/wiki/CodeReviewComments#variable-names
This commit is contained in:
parent
f2a21267b9
commit
4dd3c57f6e
|
@ -177,27 +177,6 @@ linters-settings:
|
||||||
- name: var-declaration
|
- name: var-declaration
|
||||||
- name: var-naming
|
- name: var-naming
|
||||||
- name: waitgroup-by-value
|
- name: waitgroup-by-value
|
||||||
varnamelen:
|
|
||||||
ignore-names:
|
|
||||||
- err
|
|
||||||
- rw
|
|
||||||
- r
|
|
||||||
- i
|
|
||||||
- db
|
|
||||||
- t
|
|
||||||
- id
|
|
||||||
- wg
|
|
||||||
- Me
|
|
||||||
# Optional list of variable declarations that should be ignored completely. (defaults to empty list)
|
|
||||||
# Entries must be in the form of "<variable name> <type>" or "<variable name> *<type>" for
|
|
||||||
# variables, or "const <name>" for constants.
|
|
||||||
ignore-decls:
|
|
||||||
- rw http.ResponseWriter
|
|
||||||
- r *http.Request
|
|
||||||
- t testing.T
|
|
||||||
- t testing.TB
|
|
||||||
- ok bool
|
|
||||||
- wg sync.WaitGroup
|
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
# Rules listed here: https://github.com/securego/gosec#available-rules
|
# Rules listed here: https://github.com/securego/gosec#available-rules
|
||||||
|
@ -265,5 +244,4 @@ linters:
|
||||||
- unconvert
|
- unconvert
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
- varcheck
|
||||||
- varnamelen
|
|
||||||
- wastedassign
|
- wastedassign
|
||||||
|
|
Loading…
Reference in New Issue