-
Notifications
You must be signed in to change notification settings - Fork 17
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: resolve eslint warnings (complexity) - src/lib/filter/filterNoMatchReason.ts #1585
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1585 +/- ##
==========================================
- Coverage 81.30% 81.13% -0.18%
==========================================
Files 42 41 -1
Lines 1952 1945 -7
Branches 451 429 -22
==========================================
- Hits 1587 1578 -9
+ Misses 363 339 -24
- Partials 2 28 +26
|
e684065
to
546d09d
Compare
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.
The logic is sound but if we merge in #1364 we are going to be missing many return types:
/pepr/src/lib/filter/filter.ts
67:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
68:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
69:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
70:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
71:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
72:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
73:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
74:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
75:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
76:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
77:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
78:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
79:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
80:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
81:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
82:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
113:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
114:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
115:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
116:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
117:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
118:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
119:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
120:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
121:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
122:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
123:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
124:8 warning Missing return type on function @typescript-eslint/explicit-function-return-type
I think... I do not value the That said... I totally forgot that we planned to turn this rule on, so until we can talk about turning it off for-realz, lemme just go add the types back in. Blerg. |
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.
very nice!
Describe what should be investigated or refactored
Refactor of
src/lib/filter/filterNoMatchReason.ts
to reduce complexity warnings:Additional context
Fixes #1584
In support of #1248