Web:InternationalizationCheck is not working correctly. Its not identifying if we have any special characters or two words in the control.
Versions used Sonarqube 8.4.2 & 8.9
Error observed (Scanning not identifying every similar issue in the system)
Steps to reproduce (Add a label text in Span as below, issue reported only for 1st Span value, not for other two Span Values Welcome Learn Angular Add_Dependency)
Scanner command used when applicable (
SET variable=“SampleApp”
cd %variable%
“sonar-scanner-cli-3.3.0.1492-windows\bin\sonar-scanner.bat” -Dsonar.scm.provider=git -Dsonar.host.url=http://localhost: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%)
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 : 4.6.2.2472
Error observed (Scanning not identifying every similar issue in the system)
Command:
SET variable=“C:\Users\Administrator\Desktop\Sample\Sample-Angular-App”
cd %variable%
“C:\sonar-scanner-cli-4.6.2.2472-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%