-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.hlint.yaml
138 lines (133 loc) · 4.9 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# HLint configuration file
# https://github.com/ndmitchell/hlint#readme
# We use hlint-3.8 and don't run HLint in CI.
# Silence specific warnings
- ignore:
name: "Use curry"
within:
- Agda.TypeChecking.Reduce.reduceWithBlocker
- ignore:
name: "Use fmap"
within:
- Agda.TypeChecking.Rules.Application.checkPrimTrans
- Agda.TypeChecking.Primitive.Cubical.primTrans'
- Agda.TypeChecking.Primitive.Cubical.primComp
- Agda.Syntax.Concrete.Operators.parsePat
# Warnings currently triggered by your code
- ignore: {name: "Avoid lambda"} # 50 hints
- ignore: {name: "Avoid lambda using `infix`"} # 13 hints
- ignore: {name: "Eta reduce"} # 181 hints
- ignore: {name: "Evaluate"} # 15 hints
- ignore: {name: "Functor law"} # 24 hints
- ignore: {name: "Fuse foldr/map"} # 8 hints
- ignore: {name: "Fuse mapM/map"} # 2 hints
- ignore: {name: "Fuse traverse/<$>"} # 2 hints
- ignore: {name: "Hoist not"} # 18 hints
- ignore: {name: "Move brackets to avoid $"} # 1 hint
- ignore: {name: "Move guards forward"} # 2 hints
- ignore: {name: "Redundant $"} # 618 hints
- ignore: {name: "Redundant <$>"} # 47 hints
- ignore: {name: "Redundant <&>"} # 4 hints
- ignore: {name: "Redundant True guards"} # 1 hint
- ignore: {name: "Redundant bang pattern"} # 1 hint
- ignore: {name: "Redundant bracket"} # 494 hints
- ignore: {name: "Redundant flip"} # 4 hints
- ignore: {name: "Redundant fmap"} # 1 hint
- ignore: {name: "Redundant guard"} # 5 hints
- ignore: {name: "Redundant if"} # 2 hints
- ignore: {name: "Redundant irrefutable pattern"} # 36 hints
- ignore: {name: "Redundant lambda"} # 46 hints
- ignore: {name: "Redundant map"} # 2 hints
- ignore: {name: "Redundant multi-way if"} # 20 hints
- ignore: {name: "Redundant return"} # 1 hint
- ignore: {name: "Replace case with fromMaybe"} # 4 hints
- ignore: {name: "Replace case with maybe"} # 4 hints
- ignore: {name: "Unused LANGUAGE pragma"} # 210 hints
- ignore: {name: "Use &&"} # 4 hints
- ignore: {name: "Use ++"} # 15 hints
- ignore: {name: "Use /="} # 1 hint
- ignore: {name: "Use :"} # 17 hints
- ignore: {name: "Use <$"} # 4 hints
- ignore: {name: "Use <$>"} # 19 hints
- ignore: {name: "Use <&>"} # 1 hint
- ignore: {name: "Use <=<"} # 1 hint
- ignore: {name: "Use =<<"} # 1 hint
- ignore: {name: "Use >"} # 1 hint
- ignore: {name: "Use >=>"} # 1 hint
- ignore: {name: "Use Just"} # 2 hints
- ignore: {name: "Use LANGUAGE pragmas"} # 7 hints
- ignore: {name: "Use camelCase"} # 72 hints
- ignore: {name: "Use concatMap"} # 2 hints
- ignore: {name: "Use const"} # 80 hints
- ignore: {name: "Use fewer imports"} # 6 hints
- ignore: {name: "Use first"} # 1 hint
- ignore: {name: "Use fmap"} # 6 hints
- ignore: {name: "Use fold"} # 1 hint
- ignore: {name: "Use foldMap"} # 2 hints
- ignore: {name: "Use fromMaybe"} # 1 hint
- ignore: {name: "Use id"} # 2 hints
- ignore: {name: "Use infix"} # 1 hint
- ignore: {name: "Use intercalate"} # 1 hint
- ignore: {name: "Use isNothing"} # 2 hints
- ignore: {name: "Use join"} # 3 hints
- ignore: {name: "Use lambda-case"} # 11 hints
- ignore: {name: "Use list literal"} # 12 hints
- ignore: {name: "Use list literal pattern"} # 1 hint
- ignore: {name: "Use map once"} # 1 hint
- ignore: {name: "Use map with tuple-section"} # 4 hints
- ignore: {name: "Use mapAndUnzipM"} # 1 hint
- ignore: {name: "Use mapMaybe"} # 3 hints
- ignore: {name: "Use newtype instead of data"} # 31 hints
- ignore: {name: "Use null"} # 5 hints
- ignore: {name: "Use otherwise"} # 1 hint
- ignore: {name: "Use record patterns"} # 91 hints
- ignore: {name: "Use second"} # 5 hints
- ignore: {name: "Use section"} # 21 hints
- ignore: {name: "Use sequenceA"} # 3 hints
- ignore: {name: "Use uncurry"} # 1 hint
- ignore: {name: "Use unless"} # 4 hints
- ignore: {name: "Use void"} # 13 hints
- ignore: {name: "Use zipWith"} # 2 hints
- ignore: {name: "Use ||"} # 8 hints
# Specify additional command line arguments
- arguments:
- --ignore-glob=notes/papers/iird/paper.lhs
- --ignore-glob=notes/style/haskell-style.lhs
- --ignore-glob=notes/papers/implicit/examples.lhs
- -XBangPatterns
- -XBlockArguments
- -XConstraintKinds
- -XDefaultSignatures
- -XDeriveFoldable
- -XDeriveFunctor
- -XDeriveGeneric
- -XDeriveTraversable
- -XDerivingStrategies
- -XExistentialQuantification
- -XFlexibleContexts
- -XFlexibleInstances
- -XFunctionalDependencies
- -XGADTs
- -XGeneralizedNewtypeDeriving
- -XInstanceSigs
- -XLambdaCase
- -XMultiParamTypeClasses
- -XMultiWayIf
- -XNamedFieldPuns
- -XOverloadedStrings
- -XPatternSynonyms
- -XRankNTypes
- -XRecordWildCards
- -XScopedTypeVariables
- -XStandaloneDeriving
- -XTupleSections
- -XTypeFamilies
- -XTypeOperators
- -XTypeSynonymInstances
- -XViewPatterns
# Add custom hints for this project
- hint:
lhs: flip map
rhs: for
name: Replace flip map with for
note: Prefer Agda.Utils.Functor.for over Data.Traversable.for