-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refine golangci-lint config and update dependencies (#646)
## What type of PR is this? /kind refactor ## What this PR does / why we need it: This PR includes several code quality improvements and dependency updates: 1. Code Quality Improvements: - Fix duplicate error check in elasticsearch client - Improve error handling in multiple packages - Fix linting issues and code style - Optimize imports organization - Use http.MethodGet instead of string literals - Fix potential nil pointer issues - Improve test cases and benchmarks 2. Dependency Updates: - Upgrade Go version from 1.19 to 1.22 - Update golangci-lint from v1.58.2 to v1.62.0 - Upgrade golangci-lint-action from v2 to v6 - Remove unused k8s.io dependencies (kube-aggregator, sample-apiserver) 3. Configuration Updates: - Update golangci-lint configuration - Add new linters and rules - Disable contextcheck for server.go - Update make targets for better linting experience ## Special notes - The Go version upgrade requires updating CI/CD pipelines - All tests are passing with the new linting rules - No breaking changes introduced
- Loading branch information
Showing
43 changed files
with
398 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.