mirror of
https://github.com/appleboy/drone-discord.git
synced 2026-06-04 18:33:47 +08:00
f2bd7836ef
- Remove the `exportloopref` linter from the golangci configuration - Add the `strconv` package import in `main.go` - Replace the `fmt.Sprintf` for the year with `strconv.Itoa` to convert the year to a string - Update the HTTP request method to use `http.MethodPost` instead of a string literal in `plugin.go` Signed-off-by: appleboy <appleboy.tw@gmail.com>
42 lines
705 B
YAML
42 lines
705 B
YAML
run:
|
|
timeout: 5m
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- durationcheck
|
|
- errcheck
|
|
- errorlint
|
|
- gci
|
|
- gofmt
|
|
- goimports
|
|
- gosec
|
|
- misspell
|
|
- nakedret
|
|
- nilerr
|
|
- nolintlint
|
|
- perfsprint
|
|
- revive
|
|
- usestdlibvars
|
|
- wastedassign
|
|
|
|
linters-settings:
|
|
gosec:
|
|
# To select a subset of rules to run.
|
|
# Available rules: https://github.com/securego/gosec#available-rules
|
|
# Default: [] - means include all rules
|
|
includes:
|
|
- G102
|
|
- G106
|
|
- G108
|
|
- G109
|
|
- G111
|
|
- G112
|
|
- G201
|
|
- G203
|
|
perfsprint:
|
|
err-error: true
|
|
errorf: true
|
|
int-conversion: true
|
|
sprintf1: true
|
|
strconcat: true
|