-
-
Notifications
You must be signed in to change notification settings - Fork 919
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: remove unused function mergeArrays #2989
Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2989 +/- ##
=======================================
Coverage 99.96% 99.97%
=======================================
Files 2748 2747 -1
Lines 239091 239079 -12
Branches 946 947 +1
=======================================
+ Hits 239003 239009 +6
+ Misses 88 70 -18 |
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.
Not sure wether we might need it again in the future. I'll still approve, since we have the git history.
For future refactor: Is there a TS config option to notify about dead code when resolving the main entry point? Should we look into that? |
I don't think there is. e.g. a project could contain 1000 src files and there is a .vue file that imports a .ts file. You would need the whole dependency graph. And even then, your project could have multiple entry points. Maybe tsup, esbuild or eslint could tackle such tasks. But bundlers won't affect the src code. And the scope for eslint is also questionable. |
Code coverage ftw. |
#yes however, when you have covered code with tests, it does not tell you if it is already used by the source 😉 |
The
mergeArrays
function was needed as a workaround to create the generic files for first and last names.Those have become obsolete now and thus we don't need this internal utility function anymore.
Ref: