I’m having the same issue on Community Build v25.7.0.110598. Sonar is unable to detect explicit void keyword on functions that return promises.
This sonar rule conflicts with ESLint rule no-floating-promises | TypeScript ESLint
void asyncFunction(); → This errors as a False-Positive, but is a good practice
I’m not able to reproduce. Can you please share the analysis debug logs from SonarQube IDE?
If you have a non-default tsconfig.json filename (tsconfig.app.json for example), please use the sonar property sonar.typescript.tsconfigPath to point to the correct tsconfig file.
Yes, of course, here is the log and the tsconfig (has default filename)
[2025-10-23T14:41:13.839] [sonarlint-analysis-scheduler] INFO org.sonar.iac.kubernetes.plugin.SonarLintFileListener - Module file event for MODIFIED for file [uri=file:///C:/DEV/MIS/validation-ui/src/test.ts] has been ignored because it’s not a Kubernetes file.
[2025-10-23T14:41:13.843] [sonarlint-analysis-scheduler] INFO sonarlint - Starting analysis with configuration: [
baseDir: C:\DEV\MIS\validation-ui
extraProperties: {sonar.js.internal.bundlePath=C:\Users\stepa\AppData\Roaming\JetBrains\WebStorm2025.2\plugins\sonarlint-intellij\plugins\eslint-bridge, sonar.typescript.tsconfigPath=src/tsconfig.json}
activeRules: [13 kubernetes, 264 python, 24 css, 113 kotlin, 30 secrets, 329 javascript, 26 docker, 28 ruby, 46 Web, 14 xml, 155 php, 7 terraform, 342 typescript, 7 cloudformation]
inputFiles: [
file:///C:/DEV/MIS/validation-ui/src/test.ts (UTF-8)
]
]
[2025-10-23T14:41:13.902] [sonarlint-analysis-scheduler] INFO sonarlint - Index files
[2025-10-23T14:41:13.902] [Report about progress of file indexation] INFO sonarlint - 1 file indexed
[2025-10-23T14:41:13.914] [sonarlint-analysis-scheduler] INFO org.sonar.iac.common.extension.IacSensor - There are no files to be analyzed for the Docker language
[2025-10-23T14:41:13.914] [sonarlint-analysis-scheduler] WARN sonarlint - No workDir in SonarLint
[2025-10-23T14:41:13.919] [nodejs-stream-consumer] INFO org.sonar.plugins.javascript.bridge.BridgeServerImpl - Resolving provided TSConfig files using ‘C:/DEV/MIS/validation-ui/src/tsconfig.json’
[2025-10-23T14:41:14.017] [nodejs-stream-consumer] INFO org.sonar.plugins.javascript.bridge.BridgeServerImpl - Found 1 tsconfig.json file(s): [C:/DEV/MIS/validation-ui/src/tsconfig.json]
[2025-10-23T14:41:14.018] [nodejs-stream-consumer] INFO org.sonar.plugins.javascript.bridge.BridgeServerImpl - 1 source file to be analyzed
[2025-10-23T14:41:14.018] [nodejs-stream-consumer] INFO org.sonar.plugins.javascript.bridge.BridgeServerImpl - 1/1 source file has been analyzed
[2025-10-23T14:41:14.018] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.cache.CacheReporter - Hit the cache for 0 out of 1
[2025-10-23T14:41:14.018] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.cache.CacheReporter - Miss the cache for 1 out of 1: RUNTIME_API_INCOMPATIBLE [1/1]
[2025-10-23T14:41:14.018] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.CssRuleSensor - No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[2025-10-23T14:41:14.018] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Available processors: 12
[2025-10-23T14:41:14.018] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Using 12 threads for analysis.
[2025-10-23T14:41:14.019] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Start fetching files for the text and secrets analysis
[2025-10-23T14:41:14.019] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Retrieving all except binary files
[2025-10-23T14:41:14.019] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.analyzer.Analyzer - Starting the text and secrets analysis
[2025-10-23T14:41:14.019] [Progress of the text and secrets analysis] INFO org.sonar.plugins.common.MultiFileProgressReport - 1 source file to be analyzed for the text and secrets analysis
[2025-10-23T14:41:14.019] [Progress of the text and secrets analysis] INFO org.sonar.plugins.common.MultiFileProgressReport - 1/1 source file has been analyzed for the text and secrets analysis
[2025-10-23T14:41:14.019] [sonarlint-analysis-scheduler] INFO sonarlint - Analysis detected 3 issues and 0 Security Hotspots in 176ms
is the file containing the class included or reachable in that tsconfig.json file? I see you only have the entry point in the files property. Looks like the file is being analyzed without type-checking.
Yes, that was indeed the problem. Thanks a lot! I split the config, a main tsconfig.json for all files to check types, and an inherited tsconfig.app.json for builds.