Failed to parse error on SonarScanner

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 9.5, Scanner 4.7
  • what are you trying to achieve
    Regular scan
  • what have you tried so far to achieve this
    ERROR: Failed to parse file:///var/lib/jenkins/workspace/SonarScannerV12/V12_JSP/JAVA/APPLICATIONS//////public_html/css/searchui.css, line 270, Unclosed string
    ERROR: Failed to parse file:///var/lib/jenkins/workspace/SonarScannerV12/V12_JSP/JAVA/APPLICATIONS//////public_html/css/cmic_styles_jsp2.css, line 3513, Missed semicolon
    ERROR: Failed to parse file:///var/lib/jenkins/workspace/SonarScannerV12/V12_JSP/JAVA/APPLICATIONS//////public_html/search_files/ui-datauri.css, line 3808, Unknown word
    ERROR: Failed to parse file:///var/lib/jenkins/workspace/SonarScannerV12/V12_JSP/JAVA/APPLICATIONS//////public_html/css/custom.css, line 199, Unknown word

like these i have around 40 errors showed up in the Scanner logs, and Scanner Execution was successful. BUt non of them were reported in Issues on SonarQube

Not sure why?

Please let me know how to get these errors to be reported on SonarQube Analysis (Issues) report.

Thanks
Shiva

Hi, can someone respond on it please.

Thanks in advance

Hi @shiva_sq ,

SonarQube won’t report issues on those files until the parse errors are fixed. Please fix the parse errors and scan the files again.