Skip to content
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

chore(ci): lint with golangci-lint #726

Merged
merged 6 commits into from
Jul 16, 2024
Merged

chore(ci): lint with golangci-lint #726

merged 6 commits into from
Jul 16, 2024

Conversation

ctreatma
Copy link
Contributor

@ctreatma ctreatma commented Jul 10, 2024

This introduces linting in CI to help maintain code quality and identify issues that may not be caught by tests. To avoid a big PR that resolves all existing linting issues, the CI workflow is configured to only look at files that are changed in a particular PR or commit; we'll need to keep an eye on this to make sure it's working as expected. This will allow us to chip away at existing issues over time. Eventually (ideally within a few months), the CI workflow should be updated to always lint the entire codebase.

This PR also introduces a make lint task for local execution, but this task lints the entire codebase and, for the time being, will catch some issues that are not flagged for a particular PR or commit in CI.

@ctreatma ctreatma force-pushed the linting branch 2 times, most recently from 379c279 to 447b9c6 Compare July 11, 2024 15:30
Copy link
Member

@displague displague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limit ci to checking files that are changed in a PR/commit

cool

GNUmakefile Outdated Show resolved Hide resolved
@ctreatma ctreatma marked this pull request as ready for review July 16, 2024 15:10
@ctreatma ctreatma requested a review from a team as a code owner July 16, 2024 15:10
@ctreatma ctreatma merged commit 09d97b2 into main Jul 16, 2024
6 of 7 checks passed
@ctreatma ctreatma deleted the linting branch July 16, 2024 18:37
Copy link

This PR is included in version 2.2.0 🎉

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.

2 participants