-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.hlint.yaml
30 lines (27 loc) · 1.02 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
- ignore: {name: Eta reduce}
- ignore: {name: Use if}
- ignore: {name: Use head}
- ignore: {name: Use <$>}
- ignore: {name: Use first}
- ignore: {name: Functor law}
- ignore: {name: 'Use ?~'}
- ignore: {name: 'Move brackets to avoid $'}
- ignore: {name: Avoid lambda}
- ignore: {name: Avoid lambda using `infix`}
- ignore: {name: Reduce duplication, within: Chart.Examples}
- ignore: {name: Reduce duplication, within: Chart.Bar}
- ignore: {name: Use isAsciiLower}
- ignore: {name: Use isAsciiUpper}
- ignore: {name: Use isDigit}
- ignore: {name: Use unwords}
- ignore: {name: Use isNothing}
# Replace a $ b $ c with a . b $ c
#- group: {name: dollar, enabled: true}
# Generalise map to fmap, ++ to <>
- group: {name: generalise, enabled: true}
- ignore: {name: Use head, within: [Chart.Types, Chart.Examples]}
# To generate a suitable file for HLint do:
# $ hlint --default > .hlint.yaml
- warn: {name: Use set, lhs: l .~ v, rhs: set l v}
- warn: {name: Use over, lhs: l %~ f, rhs: over l f}
- warn: {name: Use view, lhs: a ^. l, rhs: view l a}