-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (20 loc) · 1.25 KB
/
Makefile
File metadata and controls
21 lines (20 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package := flutter_app
file := test/coverage_helper_test.dart
check:
@echo "\033[32m Run build_runner to do code generation... \033[0m"
@fvm flutter packages pub run build_runner build
@echo "\033[32m Formatting code... \033[0m"
@fvm flutter format --line-length 120 lib test
@echo "\033[32m Flutter analyze... \033[0m"
@fvm flutter analyze
@echo "\033[32m Removing all golden files... \033[0m"
@find ./test -name '*.png' | xargs rm -r
@echo "\033[32m Flutter test --update-goldens... \033[0m"
@fvm flutter test --update-goldens
@echo "\033[32m Code metrics analyze: \033[0m"
@fvm flutter pub run dart_code_metrics:metrics analyze lib --set-exit-on-violation-level=warning --fatal-style --fatal-performance --fatal-warnings
@echo "\033[32m Code metrics check-unused-code: \033[0m"
@fvm flutter pub run dart_code_metrics:metrics check-unused-code . --fatal-unused
@echo "\033[32m Code metrics check-unused-files: \033[0m"
@fvm flutter pub run dart_code_metrics:metrics check-unused-files . --fatal-unused --exclude="{templates/**,.dart_tool/**,lib/generated/**,tools/custom_lints/clean_architecture_lints/**}"
@echo "\033[1;32m \n\nGOOD JOB, THE CODE IS SPOTLESS CLEAN AND READY FOR PULL REQUEST! \n \033[42m Make sure to commit any code changes \033[0m \n\n"