Docker container allowing you to scan flutter projects with Sonarqube
Extended from SonarScanner CLI for SonarQube and SonarCloud .
flutter-2.10.5flutter-3.7.12flutter-3.10.6flutter-3.13.9flutter-3.16.9flutter-3.19.5flutter-3.41.4flutter-stable.gitlab-ci.ymlsonarqube-check:
image:
name: vnvsa/sonar-scanner-cli-for-flutter:stable
entrypoint: [""]
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- flutter pub get
- flutter test || echo ":-)"
- flutter test --machine --coverage > tests.output || echo ":-)"
- sonar-scanner || echo ":-)"
allow_failure: false
except:
- schedules
Pull requests, bug reports, and feature requests are welcome.
MIT License. See the LICENSE file.
Content type
Image
Digest
sha256:75e6ef6c2…
Size
694.9 MB
Last updated
4 days ago
docker pull vnvsa/sonar-scanner-cli-for-flutter:flutter-3.41.4