-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HLint everything and add to CI (#105)
Spring cleaning: thought I'd get rid of all the blue squiggles while there weren't many open PRs. :) I ran: ```bash cabal install apply-refact hlint for f in `git ls-files | grep -e '.*\.hs'`; do echo linting $f; hlint --refactor --refactor-options="-i" $f; done ``` And manually checked that nothing semantically changed. ~Also trying out a GitHub action that should generate lint suggestions in the PRs.~ I thought the action would add PR suggestions in the web interface which could be applied with one click, but it didn't do that, and going through the CI logs feels a bit painful. This other action might do that, but it needs some security/token set up so I'll save it for another time: https://github.com/haskell-actions/hlint-scan For now, it just adds a hint to the PR diff view: ![image](https://github.com/plow-technologies/inferno/assets/10712637/525849ee-555d-455d-8c50-899040b29df8)
- Loading branch information
1 parent
c180370
commit 2541d3e
Showing
46 changed files
with
661 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "hlint", | ||
"pattern": [ | ||
{ | ||
"regexp": "^hlint\\t(?<file>[^\\t]*)\\t(?<fromPath>[^\\t]*)\\t(?<line>[^\\t]*)\\t(?<column>[^\\t]*)\\t(?<severity>[^\\t]*)\\t(?<code>[^\\t]*)\\t(?<message>[^\\t]*)$", | ||
"file": 1, | ||
"fromPath": 2, | ||
"line": 3, | ||
"column": 4, | ||
"severity": 5, | ||
"code": 6, | ||
"message": 7 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.