Skip to content

Commit a46ac79

Browse files
committed
nix: exclude protolude from style checks
Currently, our vendored protolude has many failing checks for style, lint and hsie. Temporarily excluding it. We should reinstate these checks later. Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
1 parent a2faa66 commit a46ac79

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

nix/tools/style.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ let
2929
3030
# Format Haskell files
3131
# --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753
32-
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \
32+
# TODO: fix style issues in src/protolude and include it
33+
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' --ignore-dir=src/protolude . \
3334
| xargs ${stylish-haskell}/bin/stylish-haskell -i
3435
3536
# Format Python files
@@ -89,11 +90,12 @@ let
8990
${ruff}/bin/ruff check .
9091
9192
echo "Checking consistency of import aliases in Haskell code..."
92-
${hsie} check-aliases main src
93+
${hsie} check-aliases main src/PostgREST
9394
9495
echo "Linting Haskell files..."
9596
# --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753
96-
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \
97+
# TODO: fix lint issues in src/protolude and include it
98+
${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' --ignore-dir=src/protolude . \
9799
| xargs ${hlint}/bin/hlint --hint=${hlintConfig}
98100
'';
99101

0 commit comments

Comments
 (0)