Flutter Analyze Reporter is a parser to create reports from flutter analyze output.
It supports GitLab Code Quality Widget format or GitHub Workflow messages . Please see example.
GitLab Code Quality Widget
Code quality degraded

No Changes to code quality

GitHub Workflow Summary
Warning, error and notice messages

Console output
Error, warning and info colorized

GitLab CI
Parse flutter analyze output for GitLab Code Quality Widget.
.gitlab-ci.yml file:
stages:
- test
code_quality:
stage: test
before_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
script:
- dart pub global activate flutter_analyze_reporter_2
- flutter_analyze_reporter --output report.json --reporter gitlab
artifacts:
reports:
codequality: report.json
GitHub CI
Parse flutter analyze output for GitHub Workflow messages.
.github/workflows/test.yml file:
name: Test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Analyze
run: |
dart pub global activate flutter_analyze_reporter_2
flutter_analyze_reporter --reporter github
shell: bash