-
Notifications
You must be signed in to change notification settings - Fork 48
/
.hlint.yaml
36 lines (32 loc) · 1.17 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
# ignored / annoying rules
- ignore: {name: "Use fewer imports"}
- ignore: {name: "Use if"}
- ignore: {name: "Redundant bracket"}
- ignore: {name: "Reduce duplication"}
- ignore: {name: "Redundant return"}
- ignore: {name: "Use head"}
- ignore: {name: "Use unwords"}
- ignore: {name: "Use <$>"}
- ignore: {name: "Use elem"}
- ignore: {name: "Use infix"}
- ignore: {name: "Use section"}
- ignore: {name: "Move brackets to avoid $"}
- ignore: {name: "Use zipWith"}
- ignore: {name: "Redundant flip"}
- ignore: {name: "Redundant $!"}
- ignore: {name: "Redundant <$>"}
- ignore: {name: "Eta reduce"}
- ignore: {name: "Use underscore"}
- ignore: {name: "Functor law"}
- ignore: {name: "Use record patterns"}
# custom rules
# we should use witch
- functions:
- {name: fromIntegral, within: [], message: "use into or tryFrom from Witch"}
- {name: fromInteger, within: [], message: "use into or tryFrom from Witch"}
- {name: toIntegral, within: [], message: "use into or tryFrom from Witch"}
- {name: toInteger, within: [], message: "use into or tryFrom from Witch"}
# we should use internalError
- error: {lhs: error, rhs: internalError}
# we should use pure
- error: {lhs: return, rhs: pure}