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

S3796: ignore returned Promise on async functions #895

Closed
fxOne opened this issue Dec 20, 2017 · 0 comments
Closed

S3796: ignore returned Promise on async functions #895

fxOne opened this issue Dec 20, 2017 · 0 comments
Assignees
Labels
type: false positive Issue is reported when it should NOT be
Milestone

Comments

@fxOne
Copy link

fxOne commented Dec 20, 2017

I want to report a bug.

SonarJS version: 3.3 (Build 5702)

SonarQube version: 6.7 (Build 33306)

Rule key: javascript:S3796

Reproducer

  return Promise.all([1,2].map(async (int) => { // False-positive here
    await asyncFunctionCall(int);
  }));

Expected behavior
There shouldn't be an Tickets as async function would return a Promise even if there is no return a the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: false positive Issue is reported when it should NOT be
Projects
None yet
Development

No branches or pull requests

3 participants