Skip to content

Instantly share code, notes, and snippets.

@RyanDsilva
Created May 23, 2021 15:08
Show Gist options
  • Save RyanDsilva/d5148f8b0ca5100019f4f0bee8ef0c52 to your computer and use it in GitHub Desktop.
Save RyanDsilva/d5148f8b0ca5100019f4f0bee8ef0c52 to your computer and use it in GitHub Desktop.
Lefthook YAML file for Flutter projects
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
@sadi304
Copy link

sadi304 commented Feb 21, 2022

hi, dart fix lib + --apply now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment