mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-03-05 22:57:00 -05:00
- Add golines to the list of golangci-lint formatters - Format multi-line env variable declarations for CLI flags for consistency - Split string slice initializations onto multiple lines for improved readability in tests - Use multi-line function calls for better readability in plugin and test code - Improve readability of script command appends in logic and tests Signed-off-by: appleboy <appleboy.tw@gmail.com>
56 lines
889 B
YAML
56 lines
889 B
YAML
version: "2"
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- durationcheck
|
|
- errorlint
|
|
- gosec
|
|
- misspell
|
|
- nakedret
|
|
- nilerr
|
|
- nolintlint
|
|
- perfsprint
|
|
- revive
|
|
- usestdlibvars
|
|
- wastedassign
|
|
settings:
|
|
gosec:
|
|
includes:
|
|
- G102
|
|
- G106
|
|
- G108
|
|
- G109
|
|
- G111
|
|
- G112
|
|
- G201
|
|
- G203
|
|
perfsprint:
|
|
int-conversion: true
|
|
err-error: true
|
|
errorf: true
|
|
sprintf1: true
|
|
strconcat: true
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- goimports
|
|
- golines
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|