File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,8 @@ while getopts ${optstring} arg; do
31
31
c)
32
32
PATHS=$( git show --pretty=' ' --name-only HEAD)
33
33
for path in $PATHS ; do
34
- if [ " ${path##* .} " == " hs" ]; then
35
- if grep -qE ' ^#' $path ; then
36
- echo " $path contains CPP. Skipping."
37
- else
38
- echo $path
39
- stylish-haskell $STYLISH_HASKELL_ARGS $path
40
- fi
41
- fi
34
+ echo $path
35
+ fd -e hs --ignore-file ./scripts/ci/check-stylish-ignore --full-path $path -X stylish-haskell $STYLISH_HASKELL_ARGS
42
36
done
43
37
if [ $USE_GIT == 1 ]; then
44
38
git --no-pager diff --exit-code
@@ -49,12 +43,8 @@ while getopts ${optstring} arg; do
49
43
PATHS=$( git diff --name-only HEAD)
50
44
for path in $PATHS ; do
51
45
if [ " ${path##* .} " == " hs" ]; then
52
- if grep -qE ' ^#' $path ; then
53
- echo " $path contains CPP. Skipping."
54
- else
55
- echo $path
56
- stylish-haskell $STYLISH_HASKELL_ARGS $path
57
- fi
46
+ echo $path
47
+ fd -e hs --ignore-file ./scripts/ci/check-stylish-ignore --full-path $path -X stylish-haskell $STYLISH_HASKELL_ARGS
58
48
fi
59
49
done
60
50
if [ $USE_GIT == 1 ]; then
You can’t perform that action at this time.
0 commit comments