Skip to content
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

lib, tools: remove duplicate requires #54958

Closed
wants to merge 2 commits into from

Conversation

RedYetiDev
Copy link
Member

@RedYetiDev RedYetiDev commented Sep 15, 2024

Blocked by #54892.

The first commit is that PR.


The second commit (A) removes duplicate requires, and (B) updates the lint rule to check if a require in a function is unneeded due to a top-level require.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@RedYetiDev RedYetiDev added the blocked PRs that are blocked by other issues or PRs. label Sep 15, 2024
@nodejs-github-bot nodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. labels Sep 15, 2024
@RedYetiDev RedYetiDev changed the title tools: remove redudant code from eslint require rule lib, tools: remove duplicate requires Sep 15, 2024
@RedYetiDev
Copy link
Member Author

I need to work around a few kinks it seems...

Copy link

codecov bot commented Sep 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.07%. Comparing base (3783499) to head (51d2a72).
Report is 48 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54958      +/-   ##
==========================================
+ Coverage   88.05%   88.07%   +0.01%     
==========================================
  Files         651      652       +1     
  Lines      183387   183562     +175     
  Branches    35794    35866      +72     
==========================================
+ Hits       161488   161664     +176     
+ Misses      15160    15142      -18     
- Partials     6739     6756      +17     
Files with missing lines Coverage Δ
lib/internal/abort_controller.js 97.88% <100.00%> (-0.03%) ⬇️
lib/internal/modules/cjs/loader.js 96.18% <100.00%> (-0.20%) ⬇️

... and 64 files with indirect coverage changes

@RedYetiDev RedYetiDev deleted the remove-duplicate-requires branch September 17, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked PRs that are blocked by other issues or PRs. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants