Skip to content

Commit

Permalink
Use custom_lint instead of DCM
Browse files Browse the repository at this point in the history
  • Loading branch information
solid-yuriiprykhodko authored Apr 4, 2024
1 parent 5d11a5a commit 166072d
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,9 @@ jobs:
- name: Get dependencies
if: steps.check_files.outputs.files_exists == 'true'
run: flutter pub get

- name: Setup Dart Code Metrics
if: steps.check_files.outputs.files_exists == 'true'
run: dart pub get dart_code_metrics

- name: Dart Code Metrics
if: steps.check_files.outputs.files_exists == 'true'
run: |
dirs_to_analyse=""
if [ -d lib ]; then dirs_to_analyse+=" lib"; fi
if [ -d test ]; then dirs_to_analyse+=" test"; fi
if [ -d example ]; then dirs_to_analyse+=" example"; fi
if [ dirs_to_analyse != "" ]
then
dart run dart_code_metrics:metrics \
analyze \
$dirs_to_analyse \
--fatal-warnings \
--fatal-performance \
--fatal-style
dart run dart_code_metrics:metrics \
check-unused-files \
$dirs_to_analyse \
--fatal-unused
dart run dart_code_metrics:metrics \
check-unused-code \
$dirs_to_analyse \
--fatal-unused
fi
- name: Run custom_lint
run: dart run custom_lint

- name: Check formatting
if: steps.check_files.outputs.files_exists == 'true'
Expand Down

0 comments on commit 166072d

Please sign in to comment.