Use golangci-lint to enforce linting and formatting rules#90
Merged
danielwhite merged 2 commits intomasterfrom Jul 25, 2025
Merged
Use golangci-lint to enforce linting and formatting rules#90danielwhite merged 2 commits intomasterfrom
danielwhite merged 2 commits intomasterfrom
Conversation
This is motivated by #89 to document the target baseline for linting. It intentionally avoids enforcing linting for changes prior to the introduction of this configuration so that the project can be incrementally brought in line. Each linter is explicitly enabled so there are no surprises if the defaults are changed. Only simple formatters are included since the needs of this project are relatively simple.
This workflow derives from the recommendation [1] to run a separate linting job in parallel with other jobs (i.e. tests). Only new issues will be included until the rest of the repository has been brought up to date with the new linting rules. [1]: https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use
a669299 to
c3c8723
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is motivated by #89 to document the target baseline for linting. It intentionally avoids enforcing linting for changes prior to the introduction of this configuration so that the project can be incrementally brought in line.
Each linter is explicitly enabled so there are no surprises if the defaults are changed.
Only simple formatters are included since the needs of this project are relatively simple.
The included GitHub Actions workflow derives from the recommendation to run a separate linting job in parallel with other jobs (i.e. tests).