Flutter Analyze Reporter 是一个解析器,用于从 flutter analyze 输出创建报告。
目前仅在您希望在 GitLab 代码质量小部件中显示 lint 问题时才有用。
用法
解析 flutter analyze 输出,用于 GitLab 代码质量小部件。
示例 .gitlab-ci.yml 文件
stages:
- test
code_quality:
stage: test
allow_failure: true
before_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
script:
- dart pub global activate flutter_analyze_reporter
- flutter_analyze_reporter --output=report.json --reporter=gitlab
reports:
codequality: report.json
GitLab 代码质量小部件
代码质量下降
代码质量没有变化

