Skip to content

Run golangci-lint on the entire codebase #267

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

Merged
merged 8 commits into from
Feb 18, 2021

Conversation

cclauss
Copy link
Member

@cclauss cclauss commented Feb 18, 2021

@tjgurwara99 @vedantmamgain Does line 22 properly run the linter on all .go files in the repo?
Can/should line 23's errors be safely ignored?

@cclauss cclauss marked this pull request as ready for review February 18, 2021 07:32
@cclauss cclauss changed the title DRAFT: Run golangci-lint on the entire codebase Run golangci-lint on the entire codebase Feb 18, 2021
# only-new-issues: true # Let's focus on this PR first
- run: echo "/home/runner/golangci-lint-1.31.0-linux-amd64" >> $GITHUB_PATH
version: v2.4
- run: echo "/home/runner/golangci-lint-2.4.0-linux-amd64" >> $GITHUB_PATH
- run: go version ; golangci-lint --version # Fix the following and remove || true
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- run: go version ; golangci-lint --version # Fix the following and remove || true
- run: echo "/home/runner/golangci-lint-1.31.0-linux-amd64" >> $GITHUB_PATH
- run: go version ; golangci-lint --version # Fix the following and remove || true

@cclauss cclauss merged commit 4af3545 into master Feb 18, 2021
@cclauss cclauss deleted the golangci-lint-on-whole-codebase branch February 18, 2021 10:49
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.

2 participants