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 warnings from golangci-lint #1121

Closed
bgilbert opened this issue Oct 29, 2020 · 3 comments · Fixed by #1149
Closed

Fix warnings from golangci-lint #1121

bgilbert opened this issue Oct 29, 2020 · 3 comments · Fixed by #1149

Comments

@bgilbert
Copy link
Contributor

We should run golangci-lint over the Ignition codebase. See coreos/coreos-assembler#1813 for example output from Mantle. @darkmuggle reports that the Ignition summary results are:

     50 (errcheck)
      9 (staticcheck)
      9 (gosimple)
      4 (deadcode)
      1 (unused)
      1 (structcheck)
      1 (ineffassign)
@arithx
Copy link
Contributor

arithx commented Oct 29, 2020

If we're going to implement golangci-lint we should definitely add it to the CI jobs that run as well 😄

@bgilbert bgilbert added low hanging fruit jira for syncing to jira labels Oct 29, 2020
@sohankunkerkar sohankunkerkar self-assigned this Oct 29, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Oct 29, 2020
Address coreos#1121
This change will run golangci-lint over the Ignition codebase and
check for any liniting issues.
@jlebon
Copy link
Member

jlebon commented Oct 29, 2020

Should we have a similar issue for fcct?

@bgilbert
Copy link
Contributor Author

Sure, filed as coreos/butane#149.

sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 7, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 8, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 8, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 10, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 10, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 10, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 11, 2020
sohankunkerkar added a commit to sohankunkerkar/ignition that referenced this issue Dec 11, 2020
@sohankunkerkar sohankunkerkar linked a pull request Dec 15, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants