Skip to content

fix: do not store errors, errors from files not included should not b…#298

Open
ricardogobbosouza wants to merge 1 commit intomainfrom
fix-result-storage
Open

fix: do not store errors, errors from files not included should not b…#298
ricardogobbosouza wants to merge 1 commit intomainfrom
fix-result-storage

Conversation

@ricardogobbosouza
Copy link
Collaborator

Resolve #74

Summary

As soon as the lint is executed, the error results are stored in new WeakMap.

If the file is no longer used and is in storage, your error is recorded and it is necessary to restart it.

What kind of change does this PR introduce?

Error storage has been removed, there is no performance gain, just a bug

In short, if the file is not included in the graph, it should not be passed through the lint

Did you add tests for your changes?

Yes

Does this PR introduce a breaking change?

No

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.94%. Comparing base (def99b0) to head (8b35293).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
- Coverage   98.98%   98.94%   -0.05%     
==========================================
  Files           7        7              
  Lines         297      284      -13     
  Branches       78       77       -1     
==========================================
- Hits          294      281      -13     
  Misses          3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Module lint errors are reported when module is not included in webpack bundle

1 participant