Sign inSign up

vnvsa/sonar-scanner-cli-for-flutter

By vnvsa

Updated 4 days ago

Image
0

10K+

vnvsa/sonar-scanner-cli-for-flutter repository overview

Sonar Scanner CLI for Flutter

Docker container allowing you to scan flutter projects with Sonarqube

Dependencies installed

Supported tags

Use the container

Using .gitlab-ci.yml
sonarqube-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


Contributing

Pull requests, bug reports, and feature requests are welcome.

Contacts

License

MIT License. See the LICENSE file.

Tag summary

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