Skip to content

fix(eslint-plugin): [no-uncalled-signals] handle direct signal calls in member expressions #2491

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

JamesHenry
Copy link
Member

Fixes issue where this.test() was incorrectly flagged as an uncalled signal.
The rule now properly detects when an identifier is the property of a
MemberExpression that is being called.

Fixes #2490

Generated with Claude Code

…in member expressions

Fixes issue where `this.test()` was incorrectly flagged as an uncalled signal.
The rule now properly detects when an identifier is the property of a
MemberExpression that is being called.

Fixes #2490

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: JamesHenry <JamesHenry@users.noreply.github.com>
Copy link

nx-cloud bot commented Jun 2, 2025

View your CI Pipeline Execution ↗ for commit f1a48bb.

Command Status Duration Result
nx run-many -t test ✅ Succeeded 32s View ↗
nx run-many -t build ✅ Succeeded 12s View ↗
nx run-many -t e2e-suite --parallel 1 ✅ Succeeded 20s View ↗
nx run-many -t test --codeCoverage ✅ Succeeded 47s View ↗
nx run-many -t build,typecheck,check-rule-docs,... ✅ Succeeded 43s View ↗
nx-cloud record -- pnpm nx sync:check ✅ Succeeded 2s View ↗
nx-cloud record -- pnpm format-check ✅ Succeeded 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-02 11:17:14 UTC

Copy link

codecov bot commented Jun 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.91%. Comparing base (0d02cc2) to head (f1a48bb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2491   +/-   ##
=======================================
  Coverage   92.91%   92.91%           
=======================================
  Files         200      200           
  Lines        4220     4223    +3     
  Branches      993      995    +2     
=======================================
+ Hits         3921     3924    +3     
  Misses        230      230           
  Partials       69       69           
Flag Coverage Δ
unittest 92.91% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ges/eslint-plugin/src/rules/no-uncalled-signals.ts 100.00% <100.00%> (ø)
...nt-plugin/tests/rules/no-uncalled-signals/cases.ts 100.00% <ø> (ø)
🚀 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.

@JamesHenry JamesHenry merged commit aba7254 into main Jun 2, 2025
8 checks passed
@JamesHenry JamesHenry deleted the claude/issue-2490-20250602_110142 branch June 2, 2025 11:24
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.

[no-uncalled-signals] Wrongly reports called signal in expressions
1 participant