-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
refactor: enable ban-types linting rule and fix violations #366
Conversation
Code Climate has analyzed commit 2d7bad8 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 92.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 92.7% (0.0% change). View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
=======================================
Coverage 92.31% 92.31%
=======================================
Files 122 122
Lines 11034 11034
Branches 1967 1967
=======================================
Hits 10186 10186
Misses 848 848
Continue to review full report at Codecov.
|
Excellent! Also a merge conflict hot-spot upcoming.. :) |
@EisenbergEffect You're the mastermind behind DI, could you double check if @BBosman got the typings correct for |
@BBosman Same as the other PR. Router PR made things go 💥 Do you mind fixing this up? |
Ok, other PR is now merged. |
I think type of I "do it anyway" in the The only reason I explicitly specified Same goes for the |
I rebased this on master.
No clue why linting fails on CircleCI. Those errors don't show up locally and making the suggested changes actually breaks it locally. |
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.
Solid improvements across the board, especially in the router. LGTM @EisenbergEffect
@BBosman Did I mess this up again by merging the other lint PR? |
@EisenbergEffect No you didn't, I did. By avoiding I just rebased and it's ready to go. |
This is really helpful, @BBosman. Thanks for doing this. |
Made the changes requested by @jwx. |
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
=======================================
Coverage 92.31% 92.31%
=======================================
Files 122 122
Lines 11034 11034
Branches 1967 1967
=======================================
Hits 10186 10186
Misses 848 848
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
=======================================
Coverage 92.31% 92.31%
=======================================
Files 122 122
Lines 11034 11034
Branches 1967 1967
=======================================
Hits 10186 10186
Misses 848 848
Continue to review full report at Codecov.
|
Now that the tests are also linted, @EisenbergEffect Ready to go imho. |
@EisenbergEffect Let's get this in |
@BBosman Did a quick last pass but looks good. A nice follow up might be to give |
Pull Request
📖 Description
Brings in the
ban-types
changes from #363 and fixes all related violations. I also included the (remaining) changes from #338, as they were partially overlapping and would just introduce merge conflicts.As requested on Discord by @fkleuver I set the. I explicitly markeddefaultSeverity
toerror
completed-docs
,cognitive-complexity
andno-any
aswarning
. That last one shouldn't be in there, but the remainingany
's are above my proficiency level, so I'll leave those for somebody else to fix 😊, after which the exception can be undone.🎫 Issues
Related to #249.
Follow up to the aborted #363 and #338.
👩💻 Reviewer Notes
A lot of typing changes all over the map as a result. Mostly reverse engineering A few could maybe be tightened up a bit more based on implementation knowledge that I don't (yet) have, so feel free to give suggestions. 😄
📑 Test Plan
Trust CI.
⏭ Next Steps
See #249. And moving more parts from #363 over.
Also we need to figure out why CircleCI has "invalid" linting issues so we can switch
defaultSeverity
back toerror
.