Sonarqube: line out of range since file shrinks after merge with master
问题 There is a fileA on master (say it consists of 1000 lines) We are on feature_branch , where fileA has length of say 1050 lines. On our CI pipeline, we are running coverage (it is a Python project) and it produces coverage.xml , to be used as cov input to SQ. Our SQ preview stage is as follows: - git config --global user.name "SonarQube" - git config --global user.email "sonarqube@somedomain.com" - git checkout origin/master - git merge $CI_BUILD_REF --no-commit --no-ff - sonar-scanner -Dsonar