Skip to content

Commit

Permalink
Update the make format and make checkFormat commands to exclude t…
Browse files Browse the repository at this point in the history
…he generated files
  • Loading branch information
imaNNeo committed Jan 15, 2025
1 parent c1a4e29 commit 553f0a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
ifeq ($(OS),Windows_NT)
FIND_CMD=dir /S /B lib\*.dart test\*.dart | findstr /V .mocks.dart
else
FIND_CMD=find lib test -name '*.dart' -not -name '*.mocks.dart'
endif

analyze:
flutter analyze

checkFormat:
dart format -o none --set-exit-if-changed .
dart format -o none --set-exit-if-changed $$( $(FIND_CMD) )

checkstyle:
make analyze && make checkFormat

format:
dart format .
dart format $$( $(FIND_CMD) )

runTests:
flutter test
Expand Down

0 comments on commit 553f0a1

Please sign in to comment.