Skip to content

Run golangci-lint on the entire codebase#267

Merged
cclauss merged 8 commits into
masterfrom
golangci-lint-on-whole-codebase
Feb 18, 2021
Merged

Run golangci-lint on the entire codebase#267
cclauss merged 8 commits into
masterfrom
golangci-lint-on-whole-codebase

Conversation

@cclauss

@cclauss cclauss commented Feb 18, 2021

Copy link
Copy Markdown
Member

@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
Comment thread .github/workflows/golangci-lint.yml Outdated
- 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
Copy Markdown
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

2 participants