Araxeus
(Araxeus)
May 19, 2021, 7:58pm
1
This very often show a false positive warning, using native async await functions
versions used (sonarlint vscode v1.22.0)
async function doSomething() {
return someAsyncFunction();
}
async function main() {
cont x = await doSomething();
}
You can also clearly see getTime(): Promise<any> just before the warning…
1 Like
egio
(Evan Giordanella)
May 20, 2021, 5:23pm
2
I too see this false positive frequently. Are there any updates form SonarSource?
Hello Araxeus!
Welcome to the community! Thanks for your question and good illustration. We currently investigating it. We will post more detailed answer once we will know more.
1 Like
jhcaiced
(Jhon Caicedo)
July 22, 2021, 4:00pm
5
FWIW, this issue is still present, I’m using sonarsource.sonarlint-vscode v2.0.0
In the mean time, this rule can be disabled using:
"sonarlint.rules": {
"javascript:S4123": {
"level": "off"
}
}
1 Like
Lena
(Elena Vilchik)
July 26, 2021, 10:30am
6
2 Likes
system
(system)
Closed
August 12, 2021, 8:41am
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.