Getthing this error for all my files in the terminal but on the sonar server I am able to see the report. Sonar just says its unable to find the files I have added commonMain in sonar.sources but its still not working
It sounds like you have a ktlint report, (the path to which is specified by sonar.kotlin.ktlint.reportPaths), references file paths that the SonarScanner cannot match with the files being analyzed in your project. So any issues mapped to these files wouldn’t be imported, but you can still expect Sonar’s analysis to bring the files in and raise issues.
Without further details (scanner logs, the ktlint report in question) it will be hard to debug further! Please also note that the template post asks for your SonarQube version.