code_quality_report 1.0.0 code_quality_report: ^1.0.0 copied to clipboard
Generate Code Climate JSON reports from dart Analysis Server. Transforms the output of dartanalyzer to GitLab code quality JSON
Example .gitlab-ci.yml file used internally by this tool:
stages:
- test
dartanalyzer:
image: google/dart
stage: test
before_script:
- pub global activate code_quality_report
- export PATH="$PATH":"$HOME/.pub-cache/bin"
script:
- pub get
- dartanalyzer . --format=machine 2>&1 | tocodeclimate > code-quality-report.json
artifacts:
reports:
codequality: code-quality-report.json