-
Notifications
You must be signed in to change notification settings - Fork 482
/
.hlint.yaml
30 lines (29 loc) · 1.28 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
---
# this is rarely an improvement
- ignore: {name: Move brackets to avoid $}
# this is often worse
- ignore: {name: Use <$>}
# this aids clarity since you can name the parameters
- ignore: {name: Avoid lambda}
- ignore: {name: Avoid lambda using `infix`}
- ignore: {name: Replace case with fromMaybe}
# whether this is better is very variable
- ignore: {name: Use infix}
# hlint can't handle typed TH: https://github.com/haskell-suite/haskell-src-exts/issues/383
# annoyingly, 'within' doesn't seem to work if there's a parse error, so we have to blanket
# ignore it
- ignore: {name: Parse error}
# This is rarely better, and often more confusing
- ignore: {name: Use asks}
# It seems clearer to use case than fromMaybe
- ignore: {name: Use fromMaybe}
- ignore: {name: Use section}
- fixity: infixr 8 .*
- fixity: infixr 3 ***
- fixity: infixr 3 &&&
- fixity: infixr 1 <=<
# first is too lazy, see: https://github.com/input-output-hk/plutus/issues/3876
- ignore: {name: Use first, within: [UntypedPlutusCore.Evaluation.Machine.Cek]}
- ignore: {name: Redundant if, within: [PlutusLedgerApi.V1.Value, PlutusLedgerApi.V1.Data.Value]}
- ignore: {name: Replace case with maybe, within: [PlutusLedgerApi.V1.Value, PlutusLedgerApi.V1.Data.Value]}
- ignore: {name: Use bimap, within: [PlutusTx.Builtins.HasOpaque]}