Skip to content

fix: bad error message capitalisation#12784

Merged
rvagg merged 1 commit intomasterfrom
rvagg/errcapitals
Dec 13, 2024
Merged

fix: bad error message capitalisation#12784
rvagg merged 1 commit intomasterfrom
rvagg/errcapitals

Conversation

@rvagg
Copy link
Copy Markdown
Member

@rvagg rvagg commented Dec 13, 2024

Discussion in #12781 made me check how many instances of bad capitalisation we have left in the repo, and it's not very many so I decided to fix these. I'm just limiting myself to those fixes, not the misuse of fmt.Errorf or the xerrors/errors inconsistencies.

golangci-lint is supposed to catch these for us, but I think it's deprecated its checking of xerrors messages, simply reporting those as deprecated instead and we explicitly ignore that deprecation error, so we're left without checking.

I think it might be worthwhile also putting actual staticcheck in the mix, not just the golangci-lint staticcheck module which is different, but there's a lot more errors to fix that it throws up before we do that. Something to chip away at.

@rvagg rvagg requested a review from masih December 13, 2024 10:13
@rvagg rvagg added the skip/changelog This change does not require CHANGELOG.md update label Dec 13, 2024
@rvagg rvagg merged commit 6cd8b70 into master Dec 13, 2024
@rvagg rvagg deleted the rvagg/errcapitals branch December 13, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does not require CHANGELOG.md update

Projects

Status: ☑️ Done (Archive)

Development

Successfully merging this pull request may close these issues.

3 participants