-
Notifications
You must be signed in to change notification settings - Fork 45
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
Create lint.yml #164
Create lint.yml #164
Conversation
runs golangci-lint on commits. Note: won't be enforced, but will provide warnings on commits to start us moving in the direction of maintaining a strictly linted codebase
Can you add a directive to the Makefile that runs linting as well? I'd like to be able to lint code before pushing it up. |
golangci-lint generally wants to be installed globally rather than as something that can be run without side effects. Do you imagine make rules for the install, or just that assumes it already exists ( |
Assuming it already exists for now should be fine, thanks. |
the errors from the golangci-lint action are now the actual linting errors that currently exist in the code base |
Way less than I was expecting:
|
it looks like there are actually more lint issues than this, the tool just stop after some point. We have a couple options here:
preferences? |
For CI at least, there's an option which allows only new lint errors after a certain commit to be triggered. This lets you enable the linter for new changes and gradually fix the old ones over time. |
Rebased to master |
My approval is sticky assuming lint failures do not block merges. |
…ck-not-acquired * origin/master: feat: allow application name to be passed in postgres connection url (#243) chore: remove unused tables and views fix: multisig actor migration fix: lotus chain store is a blockstore feat: limit history indexer by height (#234) polish: Avoid duplicate work when reading receipts fix: missed while closing #201 fix: gracefully disconnect from postgres on exit polish: use new init actor diffing logic fix: don't update go modules when running make fix: panic in multisig genesis task casting feat: extract msig transaction hamt Create lint.yml (#164) remove null bytes from message params (#208)
runs golangci-lint on commits.
Note: won't be enforced, but will provide warnings on commits to start us moving in the direction of maintaining a strictly linted codebase
ref: #161