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 d8227ef
Show file tree
Hide file tree
Showing 2 changed files with 10 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"
12 changes: 10 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ 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' \
-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' \
! -path '*/.*/*' \
| xargs dart format --set-exit-if-changed
Expand Down

0 comments on commit d8227ef

Please sign in to comment.