Skip to content

Commit 3dcc771

Browse files
authored
Merge pull request #10421 from geekosaur/check-at-home
round out local Makefile checks
2 parents b2a99fb + 05e939d commit 3dcc771

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ For these test executables, `-p` which applies a regex filter to the test
157157
names. When running `cabal-install` test suites, one need only use `cabal test` or
158158
`cabal run <test-target>` in order to test locally.
159159

160+
## Running other checks locally
161+
162+
Various other checks done by CI can be run locally to make sure your code doesn't
163+
fail annoyingly once you push it. `make checks` will do these checks. The list of
164+
checks is expected to grow over time, to make it easier to avoid CI turnaround on
165+
simple problems.
166+
160167
## QA Notes
161168

162169
Manual Quality Assurance (QA) is performed to ensure that the changes impacting

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ whitespace: ## Run fix-whitespace in check mode
4949
fix-whitespace: ## Run fix-whitespace in fix mode
5050
fix-whitespace --verbose
5151

52+
# local checks
53+
54+
.PHONY: checks
55+
checks: whitespace style
56+
# this should probably be a rule
57+
hlint -j --json -- .
58+
5259
# source generation: SPDX
5360

5461
SPDX_LICENSE_HS:=Cabal-syntax/src/Distribution/SPDX/LicenseId.hs

0 commit comments

Comments
 (0)