-
Notifications
You must be signed in to change notification settings - Fork 5
/
.swiftlint.yml
62 lines (54 loc) · 1.26 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
disabled_rules:
- identifier_name
- nesting
- implicit_return
- function_parameter_count
- weak_delegate
- todo
opt_in_rules:
- empty_count
- implicit_return
- nimble_operator
- operator_usage_whitespace
- unneeded_parentheses_in_closure_argument
- literal_expression_end_indentation
- closure_spacing
- closure_end_indentation
- force_unwrapping
- comma_inheritance
- convenience_type
- empty_xctest_method
- let_var_whitespace
- multiline_arguments_brackets
- multiline_literal_brackets
- multiline_parameters
- multiline_parameters_brackets
- unowned_variable_capture
- vertical_whitespace_opening_braces
- vertical_whitespace_closing_braces
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- DerivedData
cyclomatic_complexity:
ignores_case_statements: true
force_cast: warning
force_try:
severity: warning
line_length:
warning: 150
error: 160
ignores_urls: true
ignores_function_declarations: true
ignores_comments: true
file_length:
warning: 1000
error: 1200
function_body_length:
warning: 60
error: 100
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
included:
- GliaWidgets
excluded:
- GliaWidgets/Asset.swift