Skip to content
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
17 changes: 2 additions & 15 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,8 @@ jobs:
if: steps.check_linter.outputs.has_linter == 'true'
run: dart run dart_code_linter:metrics check-unused-code lib --exclude="{**/generated/**.dart,**.g.dart,**.freezed.dart}"
working-directory: ${{ inputs.directory }}
- name: Check if translations_cleaner is present
id: check_translations_cleaner
continue-on-error: true
working-directory: ${{ inputs.directory }}
run: |
if grep -q 'translations_cleaner:' pubspec.yaml; then
echo "has_translations_cleaner=true" >> $GITHUB_OUTPUT
else
echo "has_translations_cleaner=false" >> $GITHUB_OUTPUT
echo "::warning::translations_cleaner not found in pubspec.yaml, skipping linter checks"
exit 1
fi
- name: Check for unused translations
if: steps.check_translations_cleaner.outputs.has_translations_cleaner == 'true'
run: |
rm -f lib/l10n/l10n*.dart # Delete dart files to find all unused terms
flutter pub run translations_cleaner list-unused-terms -a
dart pub global activate sweeper
dart pub global run sweeper check
working-directory: ${{ inputs.directory }}