-
Notifications
You must be signed in to change notification settings - Fork 292
Enable Linting #4492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Enable Linting #4492
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This pull request aims to enable linting enhancements for the project by updating the GolangCI configuration and adjusting the GitHub Actions workflow.
- Added new linting rules including depguard and additional forbidigo filters in the GolangCI configuration.
- Updated the GitHub Actions workflow to use a dynamic version setting and set a specific working directory for the linting step.
Reviewed Changes
File | Description |
---|---|
.golangci.yml | Added new linting rules (depguard and additional forbidigo settings) to enhance code quality checks. |
.github/workflows/test.yml | Modified linting step configuration in the CI pipeline (switched version to "latest" and set working-directory). |
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
.golangci.yml:36
- The regex pattern includes 'print|println' which is already covered by the previous rule. Consider removing the redundant portion to avoid potential duplication in filtering out unwanted functions.
- "^(fmt\.Fprint(|f|ln)|print|println)$"
with: | ||
version: v1.52.2 | ||
version: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the 'latest' version for the golangci-lint action may lead to unpredictable builds. Consider pinning to a specific version for more reproducible CI behavior.
version: latest | |
version: v1.50.1 |
Copilot uses AI. Check for mistakes.
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
No description provided.