I have a stage on the Jenkins pipelie that parse the code with sonarscanner and this stage is returning “quality gate” error [UNSTABLE], your version is [ sonar: scannerHome = tool ‘SonarScanner3.2.0.1227’].
The error is “ERROR: Unable to parse file [path of the code] at line 27”.
The developers says that the code is correct, but the sonarqube tests return this error.
It seems this version the sonarscanner doesn’t support PHP 8.1 syntax, and the devops team can’t upgrade the plugin. How I can correct this?
SonarQube v8.9 LTS does not support PHP 8.1. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is: