Have `make style` ignore well-known build dirs
Open
re: code formatting
re: devx
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Can we have `make style` ignore well-known build directories like `dist-newstyle` and `.stack-work`?
```
$ make style
Cabal-syntax/.stack-work/dist/x86_64-linux/ghc-8.10.7/build/Distribution/Fields/Lexer.hs:45:1
The GHC parser (in Haddock mode) failed:
[GHC-58481] parse error on input `#'
make: *** [Makefile:32: style] Error 102
```
Contributor guide
Research direction
Start with the style target at Makefile:32 and reproduce the failure using the paths shown under dist-newstyle and .stack-work. Update the target so well-known build directories are excluded, then verify that make style no longer parses files from those directories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100