Delete vendor (installed gems) dir before running sonarscanner

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2022-02-27 19:14:30 -05:00
parent 2db8b80bb3
commit d9e11b0d86

View file

@ -61,6 +61,12 @@ if [ -n "${CI_ENABLE_COVERAGE:-}" ]; then
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
export SONAR_SCANNER_OPTS="-server"
# Delete the vendor/ directory. I've tried to exclude it using sonar.exclusions,
# but that appears to get ignored, and we end up analyzing the gemfile install
# which blows our analysis.
echo "--- deleting installed gems"
rm -rf vendor/
# See sonar-project.properties for additional settings
echo "--- running sonarscanner"
sonar-scanner \