From 88365f0212e593f9f4286d29a10d78431ebb452f Mon Sep 17 00:00:00 2001 From: Dennis Loose Date: Fri, 12 Jan 2024 11:29:19 +0100 Subject: [PATCH] chore: remove generated files from coverage --- codecov.yaml | 5 ----- melos.yaml | 18 ++++++++++++++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/codecov.yaml b/codecov.yaml index ebcf3c7c5..69cb76019 100644 --- a/codecov.yaml +++ b/codecov.yaml @@ -1,6 +1 @@ comment: false -ignore: - - "**/*.freezed.dart" - - "**/*.g.dart" - - "**/*.mocks.dart" - - "**/l10n/*.dart" diff --git a/melos.yaml b/melos.yaml index e8b9645cf..44d5463d3 100644 --- a/melos.yaml +++ b/melos.yaml @@ -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