Skip to content

Upgrade to golangci-lint v2.2.1 + disable some annoying lints + fix others#989

Merged
brandur merged 1 commit into
masterfrom
brandur-golang-ci-lint-v2.2.1-upgrade
Jul 27, 2025
Merged

Upgrade to golangci-lint v2.2.1 + disable some annoying lints + fix others#989
brandur merged 1 commit into
masterfrom
brandur-golang-ci-lint-v2.2.1-upgrade

Conversation

@brandur

@brandur brandur commented Jul 27, 2025

Copy link
Copy Markdown
Contributor

Here, upgrade golangci-lint to v2.2.1, mostly because my local version
is upgraded and throwing problems.

Some really, really, really-no-good lints have been added (noinlineerr
and wsl_v5) which we disable.

Some others have been added which are good, which we keep. One checks
that there's a consistent whitespace between embedded structs and other
properties on a struct definition. Another makes sure we're using the
context form of logging functions, so WarnContext instead of Warn.

@brandur brandur requested a review from bgentry July 27, 2025 06:24
…thers

Here, upgrade golangci-lint to v2.2.1, mostly because my local version
is upgraded and throwing problems.

Some really, really, really-no-good lints have been added (`noinlineerr`
and `wsl_v5`) which we disable.

Some others have been added which are good, which we keep. One checks
that there's a consistent whitespace between embedded structs and other
properties on a struct definition. Another makes sure we're using the
context form of logging functions, so `WarnContext` instead of `Warn`.
@brandur brandur force-pushed the brandur-golang-ci-lint-v2.2.1-upgrade branch from 0bc6301 to baf299f Compare July 27, 2025 07:16

@bgentry bgentry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had that inline error one pop up the other day, who decided to pull that in as a default?? 🤦🏼‍♂️

@brandur

brandur commented Jul 27, 2025

Copy link
Copy Markdown
Contributor Author

I had that inline error one pop up the other day, who decided to pull that in as a default?? 🤦🏼‍♂️

Yeah it's crazy!

@brandur brandur merged commit 2edf911 into master Jul 27, 2025
10 checks passed
@brandur brandur deleted the brandur-golang-ci-lint-v2.2.1-upgrade branch July 27, 2025 15:21
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