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

feat(ci): add dedicated staticcheck run #3091

Merged
merged 4 commits into from
Feb 4, 2025
Merged

feat(ci): add dedicated staticcheck run #3091

merged 4 commits into from
Feb 4, 2025

Conversation

dnwe
Copy link
Collaborator

@dnwe dnwe commented Feb 3, 2025

As we've noted that a standlone run of staticcheck can find different
issues compared with running it from golangci-lint, add a standalone run
to github actions and remove it from the golangci-lint config

@dnwe dnwe marked this pull request as draft February 3, 2025 10:54
@dnwe dnwe force-pushed the dnwe/staticcheck branch from 9f3b31a to d231a23 Compare February 3, 2025 11:25
dnwe added 4 commits February 3, 2025 11:34
A number of these are for long-deprecated and now removed linters and no
longer validate against the config schema so remove them here. Add hint
for yaml-language-server to point at the jsonschema to validate against.

Signed-off-by: Dominic Evans <[email protected]>
As we've noted that a standlone run of staticcheck can find different
issues compared with running it from golangci-lint, add a standalone run
to github actions and remove it from the golangci-lint config

Signed-off-by: Dominic Evans <[email protected]>
error strings should not be capitalized (ST1005)

Signed-off-by: Dominic Evans <[email protected]>
Switch golangci-lint nolint:unused to staticcheck lint:ignore style

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe force-pushed the dnwe/staticcheck branch from d231a23 to b3aef99 Compare February 3, 2025 11:34
@dnwe dnwe marked this pull request as ready for review February 3, 2025 18:27
@dnwe dnwe added the chore label Feb 4, 2025
@dnwe dnwe merged commit 9ae475a into main Feb 4, 2025
16 checks passed
@dnwe dnwe deleted the dnwe/staticcheck branch February 4, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants