-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: add/remove linters for consistency #102
Conversation
Updates the linters to be consistent with DPA standards.
@@ -3,46 +3,75 @@ run: | |||
tests: false | |||
modules-download-mode: readonly | |||
linters: | |||
disable-all: true |
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.
This was not removed in this PR because the only linter this ends up disabling is the unused
linter.
There are a number of functions that are unused and I don't want to remove them unnecessarily.
- makezero | ||
- misspell | ||
# - mnd |
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.
Quite a few magic numbers exist, so this can be captured in another PR
- predeclared | ||
- promlinter | ||
- staticcheck | ||
- reassign | ||
# - revive |
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.
This is a large lint, so better done in a separate PR
"github.com/spf13/cobra" | ||
"github.com/spf13/viper" | ||
|
||
"github.com/smartcontractkit/timelock-worker/pkg/logger" |
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.
Fixes import ordering
func (s *integrationTestSuite) Run(name string, subtestFunc func(t *testing.T)) bool { | ||
return s.T().Run(name, subtestFunc) | ||
} | ||
|
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.
This didn't seem to be needed but please correct me if there was a reason to wrap this
@@ -80,9 +76,10 @@ func (s *integrationTestSuite) DeployTimelock( | |||
|
|||
receipt, err := bind.WaitMined(ctx, client, transaction) | |||
s.Require().NoError(err) | |||
s.Require().Equal(receipt.Status, types.ReceiptStatusSuccessful) |
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.
Incorrect ordering
Updates the linters to be consistent with DPA standards.