Skip to content

Use golangci-lint to enforce linting and formatting rules#90

Merged
danielwhite merged 2 commits intomasterfrom
golangci-lint
Jul 25, 2025
Merged

Use golangci-lint to enforce linting and formatting rules#90
danielwhite merged 2 commits intomasterfrom
golangci-lint

Conversation

@danielwhite
Copy link
Collaborator

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).

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.
@danielwhite danielwhite changed the title Use golangci-lint to manage linting and formatting rules Use golangci-lint to enforce linting and formatting rules Jul 23, 2025
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
@danielwhite danielwhite merged commit 3c3de55 into master Jul 25, 2025
1 check passed
@danielwhite danielwhite deleted the golangci-lint branch July 25, 2025 11:19
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