mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
* chore: update Go versions and dependencies for improved compatibility - Update Go versions in workflow file to `1.23` and `1.24` - Enhance test tags in workflow with specific linker flags - Remove the conditional formatting step for Go `1.22.x` in workflow - Remove `goimports` settings from `.golangci.yml` - Update `go.mod` to use Go `1.23.0` - Upgrade `github.com/bytedance/sonic` from `v1.11.6` to `v1.13.1` - Update indirect dependencies `sonic/loader` to `v0.2.4` and `base64x` to `v0.1.5` in `go.mod` Signed-off-by: appleboy <appleboy.tw@gmail.com> * chore: update project for Go 1.23 compatibility and documentation fixes - Update Go version requirement from 1.22 to 1.23 in README.md - Remove superfluous `$` from example command in README.md - Update warning message to reflect new Go version requirement in debug.go - Update test assertion to reflect new Go version requirement in debug_test.go Signed-off-by: appleboy <appleboy.tw@gmail.com> --------- Signed-off-by: appleboy <appleboy.tw@gmail.com>
72 lines
1.2 KiB
YAML
72 lines
1.2 KiB
YAML
run:
|
|
timeout: 5m
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- dogsled
|
|
- durationcheck
|
|
- errcheck
|
|
- errorlint
|
|
- copyloopvar
|
|
- gci
|
|
- gofmt
|
|
- goimports
|
|
- gosec
|
|
- misspell
|
|
- nakedret
|
|
- nilerr
|
|
- nolintlint
|
|
- perfsprint
|
|
- revive
|
|
- testifylint
|
|
- 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
|
|
testifylint:
|
|
enable-all: true
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- structcheck
|
|
- unused
|
|
text: "`data` is unused"
|
|
- linters:
|
|
- staticcheck
|
|
text: "SA1019:"
|
|
- linters:
|
|
- revive
|
|
text: "var-naming:"
|
|
- linters:
|
|
- revive
|
|
text: "exported:"
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec # security is not make sense in tests
|
|
- linters:
|
|
- revive
|
|
path: _test\.go
|
|
- path: gin.go
|
|
linters:
|
|
- gci
|