From c9bb135019053675bee152e45b17f45609a7424b Mon Sep 17 00:00:00 2001 From: Isaac Obella Date: Thu, 29 Sep 2022 09:14:44 +0300 Subject: [PATCH] fix: Further simplify code cov script. --- .github/scripts/coverage_gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/coverage_gen.sh b/.github/scripts/coverage_gen.sh index 9d442dbd..c51bd133 100755 --- a/.github/scripts/coverage_gen.sh +++ b/.github/scripts/coverage_gen.sh @@ -5,6 +5,6 @@ touch file { printf "// Helper file to make coverage report for all dart files\n" echo "// ignore_for_file: unused_import" - find lib -type f \( -iname "*.dart" ! -iname "*.g.dart" ! -iname "*.gr.dart" ! -iname "*.freezed.dart" ! -iname "generated_plugin_registrant.dart" ! -iname "*_state.dart" ! -iname "*_event.dart" \) -print0 | xargs -0 grep -L "^part of" | cut -c 4- | sort | awk -v package="$1" '{printf "import '\''package:collaction_app%s%s'\'';\n", package, $1}' + find lib -type f \( -iname "*.dart" ! -iname "generated_plugin_registrant.dart" \) -print0 | xargs -0 grep -L "^part of" | cut -c 4- | sort | awk -v package="$1" '{printf "import '\''package:collaction_app%s%s'\'';\n", package, $1}' echo "void main(){}" } >>$file