Skip to content

Commit f125524

Browse files
committed
[bugfix] format only dart files
1 parent 8a9e48d commit f125524

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/utils/utils.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ class Utils {
9494
.where(
9595
(fileName) => fileName.startsWith(RegExp(directories.join('|'))),
9696
)
97+
// consider only Dart files
98+
.where((fileName) => fileName.endsWith('.dart'))
9799
.toSet()
98100
.toList();
99101
return modifiedFilePaths;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: git_hooks
22
description: Using dart to prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...).It is similar to husky.
3-
version: 1.0.3
3+
version: 1.0.4
44
homepage: https://github.com/xuzhongpeng/git_hooks
55

66
environment:

0 commit comments

Comments
 (0)