-
Notifications
You must be signed in to change notification settings - Fork 56
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
CI: Add golangci-lint #690
Conversation
Signed-off-by: burntcarrot <aadhav.n1@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #690 +/- ##
==========================================
+ Coverage 12.39% 12.58% +0.19%
==========================================
Files 22 22
Lines 1436 1414 -22
==========================================
Hits 178 178
+ Misses 1251 1229 -22
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@Xuanwo Lint is working as expected. Would you like to open an issue related to the unused variables found in the |
Since the workflow doesn't show a complete traceback, I decided to run it on my local machine:
Hope this helps! |
OK to remove.
OK to remove.
Use it by calling
OK to remove.
OK to remove.
OK to remove.
OK to remove.
OK to remove.
OK to remove.
OK to remove.
OK to remove. All of them are easy to solve, would you be willing to open a new PR to fix them?
|
Yes, I'll be happy to make a new PR. I don't think removing I'll remove the rest of the ineffectual assignments and redundant return statements in a new PR. |
.github/workflows/golangci-lint.yml
Outdated
@@ -0,0 +1,37 @@ | |||
name: golangci-lint | |||
on: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about executing golangco-lint
on [push, pull_request]
?
.github/workflows/golangci-lint.yml
Outdated
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about removing all useless comments?
.github/workflows/golangci-lint.yml
Outdated
- master | ||
pull_request: | ||
jobs: | ||
golangci: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
golangci: | |
golangci_lint: |
Can you please implement those changes as proposed above? My editor (VSCode) has been checking out to the wrong branch and due to this I've been making improper commits. Can you also please remove the action from PR 691 if possible. I'll try to fix my development environment, apologies for the fuss created. |
Signed-off-by: burntcarrot aadhav.n1@gmail.com
Resolves #689.