SonarScanner exit code versus quality-gate status for pre-commit blocking
Goal Configure a repeatable pre-commit or CI gate that blocks commits when the SonarQube quality gate fails, using only the SonarScanner CLI and a shared sonar-project.properties file. Constraints and uncertainty The scanner returns exit code 0 for successful upload and analysis completion, while quality-gate pass or fail is evaluated server-side and must be