mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-03-05 14:57:01 -05:00
- Update golangci-lint action to v7 and specify version v2.0 in the GitHub testing workflow - Add `.golangci.yaml` configuration file with various linters and settings - Refactor string concatenation method for destination file name in `plugin.go` - Use `strings.ReplaceAll` for replacing spaces in target paths in `plugin.go` - Change error handling to use `errors.As` for type assertion in `plugin.go` Signed-off-by: appleboy <appleboy.tw@gmail.com>
55 lines
875 B
YAML
55 lines
875 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
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|