-
Notifications
You must be signed in to change notification settings - Fork 8
/
.swiftlint.yml
66 lines (51 loc) · 1.49 KB
/
.swiftlint.yml
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
excluded:
- Pods
- Resources/Generated
- ThirdParty
- RideAustinTestUI
opt_in_rules:
# File header comments should not be added.
- file_header
disabled_rules:
# Trailing commas in arrays and dictionaries should be enforced.
- trailing_comma
# Lines can have trailing whitespace (improves developer experience in Xcode)
- trailing_whitespace
# Disable line length
- line_length
# Disable limit to identifier names
- identifier_name
# Disable maximum limit to function body length
- function_body_length
# Disable maximum limit to type body length
- type_body_length
# Disable maximum limit to file length
- file_length
# Disable cyclomatic complexity check
- cyclomatic_complexity
# Else and catch should be on its own line.
statement_position:
statement_mode: uncuddled_else
custom_rules:
equal_false_not_false:
name: "Not Bool" # rule name. optional.
message: "Use `swift == false` instead"
regex: "!(\\w)"
severity: warning # violation severity. optional.
no_forcing_of_quick_tests:
included: ".*\\Spec.swift"
name: "Quick tests"
regex: "(f(it|describe|context|itBehavesLike)\\(\")" # matches eg: `fit("`
message: "Do not force tests"
severity: warning
no_disabling_of_quick_tests:
included: ".*\\Spec.swift"
name: "Quick tests"
regex: "(x(it|describe|context|itBehavesLike)\\(\")" # matches eg: `xit("`
message: "Do not disable tests"
severity: warning
large_tuple:
- 3
type_name:
excluded:
- T