-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd4a8df
commit 1cab919
Showing
3 changed files
with
66 additions
and
64 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 |
---|---|---|
@@ -1,65 +1,66 @@ | ||
- ignore: {name: "Redundant do", within: spec} | ||
- ignore: {name: "Eta reduce"} | ||
- ignore: {name: "Use list comprehension"} | ||
- ignore: {name: "Reduce duplication"} | ||
- ignore: {name: "Use fmap"} # we use classy prelude so this would be in error | ||
- ignore: {name: "Avoid restricted function", within: "**.Prelude"} # allow "as X" | ||
- ignore: {name: "Use ."} # commonly broken or less readable | ||
- ignore: {name: "Use &&"} # we like "and" at 3+ elements | ||
- ignore: {name: "Use ||"} # we like "or" at 3+ elements | ||
- ignore: {name: "Use join"} # this often leads to cryptic code when do notation is easier to read | ||
- ignore: {name: "Use Just"} # makes code less readable | ||
- ignore: {name: "Redundant ^."} # commonly broken by esqueleto | ||
- ignore: { name: "Redundant do", within: spec } | ||
- ignore: { name: "Eta reduce" } | ||
- ignore: { name: "Use list comprehension" } | ||
- ignore: { name: "Reduce duplication" } | ||
- ignore: { name: "Use fmap" } # we use classy prelude so this would be in error | ||
- ignore: { name: "Avoid restricted function", within: "**.Prelude" } # allow "as X" | ||
- ignore: { name: "Use ." } # commonly broken or less readable | ||
- ignore: { name: "Use &&" } # we like "and" at 3+ elements | ||
- ignore: { name: "Use ||" } # we like "or" at 3+ elements | ||
- ignore: { name: "Use join" } # this often leads to cryptic code when do notation is easier to read | ||
- ignore: { name: "Use Just" } # makes code less readable | ||
- ignore: { name: "Redundant ^." } # commonly broken by esqueleto | ||
|
||
# Custom Warnings | ||
- warn: {lhs: mapM, rhs: traverse} | ||
- warn: {lhs: mapM_, rhs: traverse_} | ||
- warn: {lhs: forM, rhs: for} | ||
- warn: {lhs: forM_, rhs: for_} | ||
- warn: {lhs: return, rhs: pure} | ||
- warn: { lhs: mapM, rhs: traverse } | ||
- warn: { lhs: mapM_, rhs: traverse_ } | ||
- warn: { lhs: forM, rhs: for } | ||
- warn: { lhs: forM_, rhs: for_ } | ||
- warn: { lhs: return, rhs: pure } | ||
|
||
# Specify additional command line arguments | ||
- arguments: | ||
- -XBangPatterns | ||
- -XDataKinds | ||
- -XDeriveAnyClass | ||
- -XDeriveFoldable | ||
- -XDeriveFunctor | ||
- -XDeriveGeneric | ||
- -XDeriveLift | ||
- -XDeriveTraversable | ||
- -XDerivingStrategies | ||
- -XFlexibleContexts | ||
- -XFlexibleInstances | ||
- -XGADTs | ||
- -XGeneralizedNewtypeDeriving | ||
- -XLambdaCase | ||
- -XMultiParamTypeClasses | ||
- -XNoImplicitPrelude | ||
- -XNoMonomorphismRestriction | ||
- -XOverloadedStrings | ||
- -XQuasiQuotes | ||
- -XRankNTypes | ||
- -XRecordWildCards | ||
- -XScopedTypeVariables | ||
- -XStandaloneDeriving | ||
- -XTypeApplications | ||
- -XTypeFamilies | ||
- -XBangPatterns | ||
- -XDataKinds | ||
- -XDeriveAnyClass | ||
- -XDeriveFoldable | ||
- -XDeriveFunctor | ||
- -XDeriveGeneric | ||
- -XDeriveLift | ||
- -XDeriveTraversable | ||
- -XDerivingStrategies | ||
- -XFlexibleContexts | ||
- -XFlexibleInstances | ||
- -XGADTs | ||
- -XGeneralizedNewtypeDeriving | ||
- -XLambdaCase | ||
- -XMultiParamTypeClasses | ||
- -XNoImplicitPrelude | ||
- -XNoMonomorphismRestriction | ||
- -XOverloadedRecordDot | ||
- -XOverloadedStrings | ||
- -XQuasiQuotes | ||
- -XRankNTypes | ||
- -XRecordWildCards | ||
- -XScopedTypeVariables | ||
- -XStandaloneDeriving | ||
- -XTypeApplications | ||
- -XTypeFamilies | ||
|
||
- modules: | ||
- {name: [Data.Set], as: Set} | ||
- {name: [Data.Map], as: Map} | ||
- {name: [Data.HashSet], as: HashSet} | ||
- {name: [Data.HashMap.Strict], as: HashMap} | ||
- {name: [Data.Text], as: T} | ||
- {name: [Data.Text.Encoding], as: T} | ||
- {name: [Data.Text.IO], as: T} | ||
- {name: [Data.Text.Lazy], as: TL} | ||
- {name: [Data.Text.Lazy.Encoding], as: TL} | ||
- {name: [Data.Text.IO.Lazy], as: TL} | ||
- {name: [Data.ByteString], as: BS} | ||
- {name: [Data.ByteString.Lazy], as: BSL} | ||
- {name: [Data.ByteString.Char8], as: BS8} | ||
- {name: [Data.ByteString.Lazy.Char8], as: BSL8} | ||
- {name: [Data.List.NonEmpty], as: NE} | ||
- {name: [Data.Sequence], as: Seq} | ||
- { name: [Data.Set], as: Set } | ||
- { name: [Data.Map], as: Map } | ||
- { name: [Data.HashSet], as: HashSet } | ||
- { name: [Data.HashMap.Strict], as: HashMap } | ||
- { name: [Data.Text], as: T } | ||
- { name: [Data.Text.Encoding], as: T } | ||
- { name: [Data.Text.IO], as: T } | ||
- { name: [Data.Text.Lazy], as: TL } | ||
- { name: [Data.Text.Lazy.Encoding], as: TL } | ||
- { name: [Data.Text.IO.Lazy], as: TL } | ||
- { name: [Data.ByteString], as: BS } | ||
- { name: [Data.ByteString.Lazy], as: BSL } | ||
- { name: [Data.ByteString.Char8], as: BS8 } | ||
- { name: [Data.ByteString.Lazy.Char8], as: BSL8 } | ||
- { name: [Data.List.NonEmpty], as: NE } | ||
- { name: [Data.Sequence], as: Seq } |
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