1# HLint configuration file
2# https://github.com/ndmitchell/hlint
3##########################
8# Warnings currently triggered by our code
9- ignore: {name: "Use <$>"}
10- ignore: {name: "Use :"}
11- ignore: {name: "Redundant do"}
12- ignore: {name: "Avoid lambda"}
13- ignore: {name: "Use newtype instead of data"}
14- ignore: {name: "Use fromMaybe"}
15- ignore: {name: "Use unless"}
16- ignore: {name: "Move brackets to avoid $"}
17- ignore: {name: "Eta reduce"}
18- ignore: {name: "Parse error"}
19- ignore: {name: "Reduce duplication"}
20- ignore: {name: "Use ++"}
21- ignore: {name: "Use $>"}
22- ignore: {name: "Use section"}
23- ignore: {name: "Use record patterns"}
24- ignore: {name: "Use camelCase"}
25- ignore: {name: "Use uncurry"}
26- ignore: {name: "Avoid lambda using `infix`"}
28# Off by default hints we like
29- warn: {name: Use module export list}
31# Condemn nub and friends
32- warn: {lhs: nub (sort x), rhs: Data.List.Extra.nubSort x}
33- warn: {lhs: nub, rhs: Data.List.Extra.nubOrd}
34- warn: {lhs: nubBy, rhs: Data.List.Extra.nubOrdBy}
35- warn: {lhs: Data.List.Extra.nubOn, rhs: Data.List.Extra.nubOrdOn}
38- warn: {lhs: Data.Text.pack (DA.Pretty.renderPlain x), rhs: DA.Pretty.renderPlain x}
39- warn: {lhs: Data.Text.Extended.pack (DA.Pretty.renderPlain x), rhs: DA.Pretty.renderPlain x}
40- warn: {lhs: DA.Pretty.renderPlain (DA.Pretty.pretty x), rhs: DA.Pretty.renderPretty x}
41- warn: {lhs: Data.Text.readFile, rhs: Data.Text.Extended.readFileUtf8}
42- warn: {lhs: Data.Text.writeFile, rhs: Data.Text.Extended.writeFileUtf8}
43- warn: {lhs: Data.Text.Lazy.readFile, rhs: Data.Text.Extended.readFileUtf8}
44- warn: {lhs: Data.Text.Lazy.writeFile, rhs: Data.Text.Extended.writeFileUtf8}
45- warn: {lhs: System.Environment.setEnv, rhs: System.Environment.Blank.setEnv}
47# Specify additional command line arguments
49- arguments: ["--cpp-include=include"]
54 # Extensions enabled by `bazel` and `da-ghci` by default. We ban them here
55 # to avoid useless pragmas piling up on the top of files.
56 - {name: BangPatterns, within: []}
57 - {name: DeriveDataTypeable, within: []}
58 - {name: DeriveFoldable, within: []}
59 - {name: DeriveFunctor, within: []}
60 - {name: DeriveGeneric, within: []}
61 - {name: DeriveTraversable, within: []}
62 - {name: FlexibleContexts, within: []}
63 - {name: GeneralizedNewtypeDeriving, within: []}
64 - {name: LambdaCase, within: []}
65 - {name: NamedFieldPuns, within: []}
66 - {name: OverloadedStrings, within: []}
67 - {name: PackageImports, within: []}
68 - {name: RecordWildCards, within: []}
69 - {name: ScopedTypeVariables, within: []}
70 - {name: StandaloneDeriving, within: []}
71 - {name: TupleSections, within: []}
72 - {name: TypeApplications, within: []}
73 - {name: ViewPatterns, within: []}
76 - {name: ImplicitParams, within: []}
79 - Development.IDE.Core.FileStore
80 - Development.IDE.Core.Compile
81 - Development.IDE.GHC.Compat
82 - Development.IDE.GHC.Util
83 - Development.IDE.Import.FindImports
84 - Development.IDE.LSP.CodeAction
85 - Development.IDE.Spans.Calculate
90 - {name: [-Wno-missing-signatures, -Wno-orphans, -Wno-overlapping-patterns, -Wno-incomplete-patterns, -Wno-missing-fields, -Wno-unused-matches]}
91 - {name: [-Wno-dodgy-imports], within: Main}
93# - {name: [Data.Set, Data.HashSet], as: Set} # if you import Data.Set qualified, it must be as 'Set'
94# - {name: Control.Arrow, within: []} # Certain modules are banned entirely
97 - {name: unsafeInterleaveIO, within: []}
98 - {name: unsafeDupablePerformIO, within: []}
99 - {name: unsafeCoerce, within: []}
101# Add custom hints for this project
103# Will suggest replacing "wibbleMany [myvar]" with "wibbleOne myvar"
104# - error: {lhs: "wibbleMany [x]", rhs: wibbleOne x}
106# Turn on hints that are off by default
108# Ban "module X(module X) where", to require a real export list
109# - warn: {name: Use explicit module export list}
111# Replace a $ b $ c with a . b $ c
112# - group: {name: dollar, enabled: true}
114# Generalise map to fmap, ++ to <>
115# - group: {name: generalise, enabled: true}
117# Ignore some builtin hints
118# - ignore: {name: Use let}
119# - ignore: {name: Use const, within: SpecialModule} # Only within certain modules
121# Define some custom infix operators
122# - fixity: infixr 3 ~^#^~
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list