-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hlint CI job #1290
Add hlint CI job #1290
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- ignore: {name: Redundant <$>, within: [Hydra.Contract.HeadTokens]} | ||
- ignore: {name: Redundant compare, within: [Hydra.PartySpec]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should: use a local ignore pragma or address this This should be possible, no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know really, GHC just doesn't like it when I do the suggestions in the docs. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{-# LANGUAGE DuplicateRecordFields #-} | ||
{-# LANGUAGE OverloadedRecordDot #-} | ||
|
||
module Main where | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ let | |
|
||
fourmolu = pkgs.haskell-nix.tool compiler "fourmolu" "0.14.0.0"; | ||
cabal-fmt = pkgs.haskell-nix.tool compiler "cabal-fmt" "0.1.9"; | ||
hlint = pkgs.haskell-nix.tool compiler "hlint" "3.8"; | ||
apply-refact = pkgs.haskell-nix.tool compiler "apply-refact" "0.14.0.0"; | ||
|
||
# Build HLS form our fork (see flake.nix) | ||
haskell-language-server = pkgs.haskell-nix.tool compiler "haskell-language-server" rec { | ||
|
@@ -45,6 +47,8 @@ let | |
fourmolu | ||
cabal-fmt | ||
pkgs.nixpkgs-fmt | ||
hlint | ||
apply-refact | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this used for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For
applies everything. |
||
# For validating JSON instances against a pre-defined schema | ||
pkgs.check-jsonschema | ||
# For generating plantuml drawings | ||
|
@@ -155,6 +159,8 @@ let | |
fourmolu | ||
cabal-fmt | ||
pkgs.nixpkgs-fmt | ||
hlint | ||
apply-refact | ||
]; | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should: Leave a hint on the corresponding code location
You mentioned that we can't have a local ignore pragma because of plutus-tx, but can we somehow make a link that we want to get rid of that change the next time when we recompile / change the script hashes?