-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
61 lines (57 loc) · 1.28 KB
/
.swiftlint.yml
File metadata and controls
61 lines (57 loc) · 1.28 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
49
50
51
52
53
54
55
56
57
58
59
60
61
included:
- Sources
- Tests
disabled_rules:
- trailing_whitespace # handled by SwiftFormat
- line_length # handled by SwiftFormat --maxwidth
opt_in_rules:
# Code quality
- empty_count
- empty_string
- explicit_init
- first_where
- contains_over_filter_count
- unavailable_function
- force_unwrapping
- implicitly_unwrapped_optional
- redundant_nil_coalescing
- prefer_self_type_over_type_of_self
# Formatting & style
- closure_end_indentation
- closure_spacing
- collection_alignment
- literal_expression_end_indentation
- multiline_arguments
- multiline_parameters
- operator_usage_whitespace
- sorted_imports
- unneeded_parentheses_in_closure_argument
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
# Severity overrides
force_cast: warning
force_try: warning
line_length:
warning: 150
error: 200
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
function_body_length:
warning: 40
error: 60
function_parameter_count:
warning: 6
error: 8
ignores_default_parameters: true
type_body_length:
warning: 200
error: 300
file_length:
warning: 400
error: 600
ignore_comment_only_lines: true
cyclomatic_complexity:
warning: 10
error: 15
reporter: "xcode"