Can you attach a reproducer with your code or files?
Also, please also try running an Elasticsearch reindex as described here, rescan your project, and check again:
How do I trigger a full ElasticSearch reindex?
Currently, the only way to force a reindex is to:
Stop your server
Remove the contents of the $SQ_HOME/data/es7 directory
Start your server
Before doing this, you should be aware first that processes are in place on the SonarQube side that out-of-sync indices are detected and corrected, and second that a full re-index can be quite lengthy depending on the size of your instance.
We have done the Elasticsearch reindex, still we are facing the issue.
Sonarqube Community Edition Version 8.9.2 (build 46101)
Sonarscanner : 18.104.22.1682
Error observed (Scanning not identifying every similar issue in the system)
“C:\sonar-scanner-cli-22.214.171.1242-windows\bin\sonar-scanner.bat” -Dsonar.host.url=http://devops:9000 -Dsonar.login=790e2dc10220540faa787811d32acdea73e5a572 -Dsonar.sourceEncoding=UTF-8 -Dsonar.sources=. -Dsonar.projectVersion=1.0 -Dsonar.projectKey=Sample -Dsonar.typescript.tsconfigPath=tsconfig.json -Dsonar.projectName=Sample -Dsonar.projectBaseDir=%variable%