Skip to content

Commit

Permalink
Revert "[chore] don't use treeefmt for hlint, readd the remove hlint …
Browse files Browse the repository at this point in the history
…rules (#4028)"

This reverts commit aef2f57.
  • Loading branch information
MangoIV committed Apr 29, 2024
1 parent f0a91f1 commit 11c8ba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
26 changes: 1 addition & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,31 +154,7 @@ ghcid:

# Used by CI
.PHONY: lint-all
lint-all: treefmt-check check-local-nix-derivations hlint-check-all

.PHONY: hlint-check-all
hlint-check-all:
./tools/hlint.sh -f all -m check

.PHONY: hlint-inplace-all
hlint-inplace-all:
./tools/hlint.sh -f all -m inplace

.PHONY: hlint-check-pr
hlint-check-pr:
./tools/hlint.sh -f pr -m check

.PHONY: hlint-inplace-pr
hlint-inplace-pr:
./tools/hlint.sh -f pr -m inplace

.PHONY: hlint-check
hlint-check:
./tools/hlint.sh -f changeset -m check

.PHONY: hlint-inplace
hlint-inplace:
./tools/hlint.sh -f changeset -m inplace
lint-all: treefmt-check check-local-nix-derivations

.PHONY: hlint-inplace-all
hlint-inplace-all:
Expand Down
5 changes: 5 additions & 0 deletions treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ options = [
"--check-idempotence",
]

[formatter.hlint]
command = "hlint"
includes = ["*.hs"]
excludes = [ "dist*" ]

[formatter.shellcheck]
command = "shellcheck"
includes = ["*.sh"]
Expand Down

0 comments on commit 11c8ba7

Please sign in to comment.