mirror of
https://github.com/appleboy/drone-discord.git
synced 2026-06-04 18:33:47 +08:00
ci: revise golangci-lint configuration and update versioning
- Update golangci-lint-action used version from `v6` to `v7` - Set specific golangci-lint version to `v2.0` instead of latest - Remove `run` section with timeout setting in `.golangci.yaml` - Eliminate multiple linters (`errcheck`, `gci`, `gofmt`, `goimports`) from `.golangci.yaml` - Change `linters-settings` to `settings` in `.golangci.yaml` - Add `int-conversion: true` to `perfsprint` settings - Add new exclusion settings for generated code, preset rules, and specific paths under `exclusions` in `.golangci.yaml` - Incorporate formatter settings with enabled formatters and exclusions for certain paths in `.golangci.yaml` Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
@@ -15,9 +15,9 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup golangci-lint
|
||||
uses: golangci/golangci-lint-action@v6
|
||||
uses: golangci/golangci-lint-action@v7
|
||||
with:
|
||||
version: latest
|
||||
version: v2.0
|
||||
args: --verbose
|
||||
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
|
||||
Reference in New Issue
Block a user