Skip to content

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Enable Linting #4492

wants to merge 3 commits into from

Conversation

pskrbasu
Copy link
Contributor

No description provided.

@pskrbasu pskrbasu self-assigned this Feb 19, 2025
@cbruno10 cbruno10 requested a review from Copilot March 5, 2025 18:38
Copy link

@Copilot Copilot AI left a 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
Copy link
Preview

Copilot AI Mar 5, 2025

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.

Suggested change
version: latest
version: v1.50.1

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented May 5, 2025

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.

@github-actions github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label May 5, 2025
@pskrbasu pskrbasu removed the stale No recent activity has been detected on this issue/PR and it will be closed label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant