flutter-format-pre-commit
flutter-format-pre-commit copied to clipboard
Problem with flutter pre-commit format?
In file .pre-commit-config.yaml i have set start file of application for testing of functionality hook.
- repo: https://github.com/Cretezy/flutter-format-pre-commit
rev: "master"
hooks:
- id: flutter-format
files: lib/src/app.dart # Only format source file
Intentionally I indent in the file and after that I commit, I get an error -
Commit failed with error
0 files committed, 1 file failed to commit: test hook
Format Flutter Code......................................................Failed
hookid: flutter-format
Files were modified by this hook. Additional output:
Formatted lib/src/app.dart
find: ‘> bin [’: No such file or directory
My OS is Windows 10
Same here...
Sorry I somehow never saw this. I haven't tried on Windows so can you give me more information on which shell you are using?
A normal cmd, nothing fancy.