Created
May 23, 2021 15:08
-
-
Save RyanDsilva/d5148f8b0ca5100019f4f0bee8ef0c52 to your computer and use it in GitHub Desktop.
Lefthook YAML file for Flutter projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre-commit: | |
commands: | |
lint_code: | |
glob: '*.dart' | |
run: dart fix lib && git add . | |
format_code: | |
glob: '*.dart' | |
run: flutter format {staged_files} && git add . | |
pre-push: | |
parallel: true | |
commands: | |
tests: | |
run: flutter test | |
static_code_analysis: | |
run: flutter analyze |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi,
dart fix lib
+--apply
now?