Skip to content

Commit

Permalink
chore: remove generated files from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Jan 12, 2024
1 parent 1bc92b5 commit 88365f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
5 changes: 0 additions & 5 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
comment: false
ignore:
- "**/*.freezed.dart"
- "**/*.g.dart"
- "**/*.mocks.dart"
- "**/l10n/*.dart"
18 changes: 16 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,28 @@ scripts:
# cleanup generated files from coverage
coverage:cleanup: >
melos exec --file-exists=coverage/lcov.info -- \
lcov --remove coverage/lcov.info '**/*.g.dart' '**/*.freezed.dart' -o coverage/lcov.info
lcov --remove coverage/lcov.info \
'**/*.freezed.dart' \
'**/*.g.dart' \
'**/*.mocks.dart' \
'**/l10n/*.dart' \
'**/*.pb.dart' \
'**/*.pbjson.dart' \
'**/*.pbgrpc.dart' \
'**/*.pbenum.dart' \
-o coverage/lcov.info

# format all packages
format: >
find . -name '*.dart' \
! -name '*.g.dart' \
! -name '*.freezed.dart' \
! -name '*.g.dart' \
! -name '*.mocks.dart' \
! -path '*/l10n/*.dart' \
! -name '*.pb.dart' \
! -name '*.pbjson.dart' \
! -name '*.pbgrpc.dart' \
! -name '*.pbenum.dart' \
! -path '*/.*/*' \
| xargs dart format --set-exit-if-changed
Expand Down

0 comments on commit 88365f0

Please sign in to comment.