-
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
fix: eslint max depth warnings #1255
fix: eslint max depth warnings #1255
Conversation
fixes: 1249
We need to hold off on this PR until our release next week. Thank you for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1255 +/- ##
==========================================
+ Coverage 79.69% 79.85% +0.16%
==========================================
Files 40 40
Lines 1945 1941 -4
Branches 384 409 +25
==========================================
Hits 1550 1550
+ Misses 393 389 -4
Partials 2 2
|
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.
Linter warnings are resolved (aside from helper.ts
as noted), thank you! Left a couple comments for questions that the maintainers can consider prior to merging.
can you please run |
Yes I did, sorry for delay, most warning aren't related to |
@tamirazrab, thanks for doing the bulk of the work resolving the max-depth warnings! I'm gonna knock out the last few things and update the branch for us since we've had several changes over the past few weeks. |
There are broader issues with test-coverage in the refactored files that we already know about, accepting the small overall decrease to gain linter resolutions. |
This reverts commit 7453d6a.
This reverts commit 9dbf9ab. ## Description #1249, but with attention paid to passing E2E tests that were missed in #1255. Two instances of `max-depth` violations remain in the codebase (`validate-processor.ts` & `mutate-processor.ts`), but that's a lot better than where things were. End to End Test: (See [Pepr Excellent Examples](https://github.com/defenseunicorns/pepr-excellent-examples)) ## Related Issue Relates to #1249 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) ## Checklist before merging - [x] Unit, [Journey](https://github.com/defenseunicorns/pepr/tree/main/journey), [E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples), [docs](https://github.com/defenseunicorns/pepr/tree/main/docs), [adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or updated as needed - [x] [Contributor Guide Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request) followed --------- Co-authored-by: Barrett <81570928+btlghrants@users.noreply.github.com>
Description
Fixes eslint
max-depth
warnings in different files.Left out
helper.ts
purposely not sure how to remove nesting there.Related Issue
Fixes #1249
Type of change
Checklist before merging