forked from owncloud/ios-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
49 lines (46 loc) · 1.13 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
excluded:
- ownCloudTests
- ownCloudScreenshotsTests
- external
#function_body_length: 100
# warning_threshold: 5
# line_length:
# warning: 300
# ignores_function_declarations: true
# ignores_comments: true
force_cast: warning
identifier_name:
excluded:
- x
- y
disabled_rules:
- block_based_kvo
- empty_enum_arguments
- switch_case_alignment
- identifier_name
- colon
- cyclomatic_complexity
- file_length
- for_where
- operator_whitespace
- type_body_length
- line_length
- type_name
- vertical_parameter_alignment
- function_body_length
- implicit_getter
- computed_accessors_order
- function_parameter_count
- comment_spacing
- unused_closure_parameter
- control_statement
- nesting
- comma
- large_tuple
custom_rules:
empty_line_after_guard_statement:
included: ".*\\.swift"
name: "Empty line after guard statement"
regex: "((?<=\n)([ ]*)guard[^\\}]*?\\}\n\\2[^\n])" # Follow https://regex101.com/r/i1IaQH/1 fo$
message: "Add a newline after guard statement to make it easier to read"
severity: warning