-
Notifications
You must be signed in to change notification settings - Fork 325
/
.hlint.yaml
32 lines (27 loc) · 1.31 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
# We need quasi quotes support.
- arguments: [ -XQuasiQuotes, -XOverloadedRecordDot, --color ]
# Used to enforce ormolu styling. Can be revisited if we change formatters.
- ignore: { name: Redundant $ }
- ignore: { name: Redundant do }
- ignore: { name: Use newtype instead of data }
# Left for the programmer to decide. See discussion at https://github.com/wireapp/wire-server/pull/2382#discussion_r871194424
- ignore: { name: Avoid lambda }
- ignore: { name: Avoid lambda using `infix` }
- ignore: { name: Eta reduce }
- ignore: { name: Use section }
- ignore: { name: "Use :" }
- ignore: { name: Use underscore }
- ignore: { name: Use error }
# custom rules:
- hint: { lhs: (() <$), rhs: void }
- hint: { lhs: return, rhs: pure }
- hint: { lhs: maybe mempty, rhs: foldMap }
# We want the latter function because it handles signals properly.
- error: { name: Use shutdown, lhs: runSettings, rhs: runSettingsWithShutdown }
- ignore: { name: Use shutdown, within: [
Network.Wai.Utilities.Server, # this is the implementation 'runSettingsWithShutdown'
Federator.Interpreter, # this is just a naming coincidence
Cannon.Run # we do something similar, but not identical here by hand
] }
# ormolu disagrees with this (and also some of us devs, sometimes):
- ignore: { name: Redundant bracket }