Skip to content

Commit

Permalink
Avoid unnecessary diffs in make comments
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 27, 2024
1 parent ee366f3 commit 1ff59a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ style-todo: ## Configured for fourmolu, avoiding GHC parser failures
@fourmolu -q $(FORMAT_DIRS_TODO) > /dev/null

.PHONY: style
style: ## Run the code styler
style: ## Run the code styler.
@fourmolu -q -i $(FORMAT_DIRS)

.PHONY: style-modified
style-modified: ## Run the code styler on modified files
style-modified: ## Run the code styler on modified files.
@git ls-files --modified $(FORMAT_DIRS) \
| grep '.hs$$' | xargs -P $(PROCS) -I {} fourmolu -q -i {}

.PHONY: style-commit
style-commit: ## Run the code styler on the previous commit
style-commit: ## Run the code styler on the previous commit.
@git diff --name-only HEAD $(COMMIT) -- $(FORMAT_DIRS) \
| grep '.hs$$' | xargs -P $(PROCS) -I {} fourmolu -q -i {}

Expand Down

0 comments on commit 1ff59a2

Please sign in to comment.