Skip to content

Commit

Permalink
fix: Further simplify code cov script.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizlif committed Oct 10, 2022
1 parent 2404d6f commit c9bb135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/coverage_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c9bb135

Please sign in to comment.