Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom_lint instead of DCM #19

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 2 additions & 28 deletions .github/workflows/flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,10 @@ 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
- name: Run custom_lint
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
run: dart run custom_lint

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