chore: update linter configuration and enhance CI workflow
- Replaced 'exportloopref' with 'copyloopvar' in .golangci.yml for improved linting accuracy. - Updated 'goerr113' to 'err113' for consistency in linter naming. - Added Go setup step in the GitHub Actions workflow to specify Go version 1.23. - Enhanced the gosec report upload process and added a step to display scan results in the CI workflow. - Improved error handling in the unmarshalBody function to provide clearer error messages.
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ linters:
|
||||
- unparam
|
||||
- gocritic
|
||||
- gosec
|
||||
- exportloopref
|
||||
- copyloopvar
|
||||
- goconst
|
||||
- gocyclo
|
||||
- dupl
|
||||
@@ -34,7 +34,7 @@ linters:
|
||||
- errorlint
|
||||
- exhaustive
|
||||
- godot
|
||||
- goerr113
|
||||
- err113
|
||||
- mnd
|
||||
- goprintffuncname
|
||||
- nlreturn
|
||||
|
||||
Reference in New Issue
Block a user