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

Add new workflow for static analysis checks & address lint errors #30

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

jmhbnz
Copy link
Member

@jmhbnz jmhbnz commented Mar 21, 2024

This pull request introduces a basic new github actions workflow for running golangci-lint so we can keep on top of this moving forward.

In a second commit I've also quickly gone through all the lint errors and made an initial rushed attempt at fixing them, @siyuanfoundation can you please take a close look at these.

@jmhbnz jmhbnz force-pushed the add-static-analysis-workflow branch 3 times, most recently from fdc4088 to c9b7994 Compare March 21, 2024 15:38
@jmhbnz jmhbnz marked this pull request as ready for review March 21, 2024 16:18
@jmhbnz jmhbnz changed the title [WIP] Add new workflow for static analysis checks. Add new workflow for static analysis checks & address lint errors Mar 21, 2024
@@ -98,6 +98,7 @@ func init() {
//
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
// correctly.
//nolint:errcheck
Copy link
Member Author

Choose a reason for hiding this comment

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

We have a work in progress pr in relation to scheme so don't want to waste time sorting our error checking here for now so just added the nolint:errcheck

@jmhbnz jmhbnz requested a review from siyuanfoundation March 21, 2024 16:22
@jmhbnz jmhbnz force-pushed the add-static-analysis-workflow branch from c9b7994 to 1ea9209 Compare March 22, 2024 06:23
@siyuanfoundation
Copy link
Contributor

LGTM. We should also add a make verify target to verify lint locally.

@siyuanfoundation siyuanfoundation merged commit 469f031 into etcd-io:master Mar 22, 2024
3 checks passed
@jmhbnz jmhbnz deleted the add-static-analysis-workflow branch June 9, 2024 10:36
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.

3 participants