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

fix: bad error message capitalisation #12784

Merged
merged 1 commit into from
Dec 13, 2024
Merged

fix: bad error message capitalisation #12784

merged 1 commit into from
Dec 13, 2024

Conversation

rvagg
Copy link
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
85 of 87 checks passed
@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
Development

Successfully merging this pull request may close these issues.

3 participants