Skip to content

JS-713 S2699 new implementation could cause endless loop #5365

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 2 commits into from
May 9, 2025
Merged

Conversation

zglicz
Copy link
Contributor

@zglicz zglicz commented May 9, 2025

JS-713

Fuond based on peachee job - and failing on the last test-case here - https://github.com/SonarSource/expected-issues/blob/master/javascript/test/RSPEC_6092/uncertainAssertion.test.js

If we jump to 'ArrowExpression', we already know its a local variable and we don't need to extract the fqn.

@zglicz zglicz requested a review from a team May 9, 2025 08:53
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title S2699 new implementation could cause endless loop JS-713 S2699 new implementation could cause endless loop May 9, 2025

it("uses chai 'should'", function() { // Noncompliant {{Add at least one assertion to this test case.}}
// The same is true for "should" assertions.
throwsTypeError.should.to.not.throw(ReferenceError)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

sonarqube-next bot commented May 9, 2025

@vdiez vdiez merged commit bb32d44 into master May 9, 2025
24 checks passed
@vdiez vdiez deleted the fix-test branch May 9, 2025 09:17
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.

2 participants