Skip to content

Commit

Permalink
[chore] don't use treeefmt for hlint, readd the remove hlint rules (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV authored Apr 29, 2024
1 parent c950a3a commit aef2f57
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
26 changes: 25 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,31 @@ ghcid:

# Used by CI
.PHONY: lint-all
lint-all: treefmt-check check-local-nix-derivations
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

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

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

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

0 comments on commit aef2f57

Please sign in to comment.