-
Notifications
You must be signed in to change notification settings - Fork 606
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
🧹 Linting #1418
🧹 Linting #1418
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1418 +/- ##
==========================================
- Coverage 80.05% 79.97% -0.08%
==========================================
Files 164 165 +1
Lines 12300 12367 +67
==========================================
+ Hits 9847 9891 +44
- Misses 1993 2012 +19
- Partials 460 464 +4
|
The first run failed due to timeout, so I gave it a longer timeout. |
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.
Thanks for these improvements, @faddat!
I think it would also make sense to add a brief explanation of the API breaking changes in the migration docs. If you prefer, we can take care of that ourselves in a separate PR.
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.
Thanks Jacob, I'll defer to the implementation team here. I just have a couple of questions/suggestions
Note: some of these defy normal convention in Cosmos. What I would like to do is come up with a standard set of linters that we can use for SDK 46 onwards, so that we end up not triggering liter errors and needing to use golint. I started work on that over at Osmosis, and eventually hope to apply that work to the Cosmos SDK. |
modules/light-clients/07-tendermint/types/misbehaviour_handle.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
I suspect they'll perpetually be grouped with stdlib, but I'll kick that off now. |
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.
LGTM, only minor concerns left:
- e2e module naming change (think this is likely fine as is)
- RedundancyDecorator renamed to RedundantRelayDecorator? Did we want to do this change?
Do you think we could additionally add an exception to ignore Thanks for all your work on getting this over the line! |
@vuong177 is re-doing protos now make proto-all doesn't work on my computer for some reason |
RedundancyDecorator renamed to RedundantRelayDecorator? Did we want to do this change? -- I don't think so? I'll have a look and try to figure out how it got in because I don't recall making it. maybe it triggered the "stutters" thing? checking... |
That seemed to be the conclusion to me, but I don't have a strong preference. It just seems like a more descriptive name. Did it cause an issue with the linter? |
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.
Great work!! Thanks for following up on all our suggestions. I'm still curious about the Decorator naming, but don't want to block merge on that discussion
@faddat There seem to be some conflicts... |
@colin-axner let's keep the name as it is, then. It doesn't cause an issue with the linter. In fact, once this is merged, our editors should be able to scream at us about even the most trivial lint issues. It's 100% golang-ci lint'd. |
Description
This PR updates the linters so that we no longer use deprecated linters, enforces linting in CI, and fixes linter errors.
closes: #1417
Please note that this changes a number of important names, but likely most important:
every time we named something with Id, that has been changed to ID per revive.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes