forked from lyft/Lyft-iOS-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
48 lines (47 loc) · 1.29 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
disabled_rules:
- identifier_name
- opening_brace
opt_in_rules:
- conditional_returns_on_newline
- private_outlet
- sorted_imports
trailing_comma:
mandatory_comma: true
line_length:
- 110
type_body_length:
- 350
private_over_fileprivate:
validate_extensions: true
deployment_target:
iOS_deployment_target: 8.0
excluded:
- Example/Pods
custom_rules:
extra_newlines_braces:
name: "Extra newlines before closing braces"
regex: '\}\n\n\s*\}$'
closure_arg_parens:
name: "Closure argument no parens"
regex: '\{\s*(?:\[[^\]]+\])\s*\([^:]+\)\s*in'
class_modifier:
name: "use static instead of class"
regex: '^ *(public|internal|fileprivate|private)? *class +(func|var|let) +'
class_func:
name: "class func usage"
regex: '^\s*class\s+func\s+'
closing_braces_without_whitespace:
name: "Single newline after closing brace"
regex: '^[ ]*\}\n[ ]*[^} \n\.\)#]'
match_kinds:
- identifier
- typeidentifier
closing_bracket_without_whitespace:
name: "Single newline after closing bracket"
regex: '^[ ]*\]\n[ ]*[^]} \n\.\)#]'
newline_after_brace:
name: "Opening braces shouldn't have empty lines under them"
regex: '\{\n\n'
newline_before_brace:
name: "Closing braces shouldn't have empty lines before them"
regex: '\n\n\}'