-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.hlint.yaml
More file actions
48 lines (40 loc) · 1.15 KB
/
.hlint.yaml
File metadata and controls
48 lines (40 loc) · 1.15 KB
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
# HLint configuration file
##########################
# Ignore warnings if the code is fine the way it is.
- ignore:
name: "Avoid lambda using `infix`"
within: "HsLua.Core.Primary"
- ignore:
name: "Reduce duplication"
within:
- HsLua.Class.Pushable
- HsLua.Peek
- ignore:
name: "Redundant <$>"
within:
- HsLua.Packaging.ModuleTests
# Lua functions use snake_case, not camelCase
- ignore:
name: "Use camelCase"
within:
- "Lua.Call"
- "Lua.LPeg"
- "Lua.Userdata"
- "HsLua.Core.Trace"
# DocLayout is in a separate git repo
- "HsLua.Module.DocLayout"
- "HsLua.Module.Path"
- "HsLua.Module.System"
- "HsLua.Module.Version"
- "HsLua.Module.Zip"
- "HsLua.Packaging.RenderingTests"
- modules:
# Ensure names for qualified imports
- {name: Data.ByteString, as: B}
- {name: Data.ByteString.Char8, as: Char8}
- {name: Data.Text, as: T}
- {name: Foreign.Lua, as: Lua}
# Ban "module X(module X) where", to require a real export list
- warn: {name: Use explicit module export list}
# Replace a $ b $ c with a . b $ c
# - group: {name: dollar, enabled: true}