Skip to content

fix(dcm): apply DCM main suggestions #1417

fix(dcm): apply DCM main suggestions

fix(dcm): apply DCM main suggestions #1417

Workflow file for this run

name: Dart Code Metrics Report
on: push
jobs:
dart_code_metrics:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- name: Install Flutter Dependencies
run: |
flutter config --no-analytics --no-cli-animations
flutter --version
flutter pub get
- name: Dart Code Metrics
run: |
dart pub global activate -s git https://github.com/gruvw/dart_code_metrics.git
((metrics analyze lib --reporter=console || true) | tail -n +3 | sed "s/\/individuals//g" | sed "s/WARNING/:warning:/g" | sed "s/ERROR/:rotating_light:/g" | sed "s/STYLE/:art:/g" | sed "s/PERFORMANCE/:dart:/g" | sed "/^lib\//s/^/#### /" | sed "s/at.*\/lib/in file lib/g" | sed "s/ /- /g") >> $GITHUB_STEP_SUMMARY