Skip to content

Commit

Permalink
Merge pull request #1569 from d-loose/cleanup-codecov
Browse files Browse the repository at this point in the history
chore: remove generated files from coverage
  • Loading branch information
d-loose authored Jan 12, 2024
2 parents 509af79 + 24f6d23 commit 71dfb02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ migrate_working_dir/
.pub/
pubspec.lock
/build/
/coverage/
coverage/
/doc/
.fvm
**/build/
Expand Down
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 71dfb02

Please sign in to comment.