-
Notifications
You must be signed in to change notification settings - Fork 6
/
.hlint.yaml
45 lines (38 loc) · 2.2 KB
/
.hlint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# HLint configuration file
# https://github.com/ndmitchell/hlint
##########################
- modules:
- {name: [Data.Set, Data.HashSet], as: S}
- {name: [Data.HashMap], as: HM}
- {name: [Data.Map, Data.Map.Strict], as: M}
- {name: [Data.List], as: L}
# Force NITTA.Utils.Base
- warn: {lhs: "Data.Set.unions (map f l)", rhs: NITTA.Utils.Base.unionsMap x}
- warn: {lhs: "head (Data.Set.elems s)", rhs: NITTA.Utils.Base.oneOf s}
- warn: {lhs: "Data.Text.pack (Data.String.ToString.toString s)", rhs: NITTA.Utils.Base.toText s}
- warn: {lhs: "Data.Text.pack (show s)", rhs: NITTA.Utils.Base.showText s}
- warn: {lhs: "fromString (Data.Text.unpack x)", rhs: fromText x}
- warn: {lhs: "read (Data.Text.unpack t)", rhs: NITTA.Utils.Base.readText t}
# Ignore:
- ignore: { name: "Avoid lambda" }
- ignore: { name: "Eta reduce" }
- ignore: { name: "Use tuple-section" }
- ignore: { name: "Use zipWith" }
- ignore: { name: "Move concatMap out" }
- ignore: { name: "Redundant <&>" }
- ignore: { within: "NITTA.Intermediate.Simulation.Tests", name: "Fuse mapM_/map" }
- ignore: { within: "NITTA.Intermediate.Value.Tests", name: "Evaluate" }
- ignore: { within: "NITTA.Intermediate.Value.Tests", name: "Use camelCase" }
- ignore: { within: "NITTA.Model.ProcessorUnits.Accum.Tests", name: "Reduce duplication" }
- ignore: { within: "NITTA.Model.ProcessorUnits.Divider.Tests", name: "Reduce duplication" }
- ignore: { within: "NITTA.Model.ProcessorUnits.Fram", name: "Redundant map" }
- ignore: { within: "NITTA.Model.ProcessorUnits.Multiplier.Tests", name: "Reduce duplication" }
- ignore: { within: "NITTA.Model.ProcessorUnits.Tests.DSL", name: "Use uncurry" }
- ignore: { within: "NITTA.Model.ProcessorUnits.Tests.DSL.Tests", name: "Reduce duplication" }
- ignore: { within: "NITTA.Model.Tests.Microarchitecture", name: "Reduce duplication" }
- ignore: { within: "NITTA.Project.Template", name: "Avoid lambda using `infix`" }
- ignore: { within: "NITTA.Tests", name: "Reduce duplication" }
- ignore: { within: "NITTA.Tests", name: "Use uncurry" }
- ignore: { within: "NITTA.UIBackend.ViewHelper", name: "Use <$>" }
- ignore: { within: "NITTA.Utils.Tests", name: "Reduce duplication" }
- ignore: { within: "Spec", name: "Use list comprehension" }