-
Notifications
You must be signed in to change notification settings - Fork 6
/
.swiftlint.yml
69 lines (65 loc) · 1.47 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
67
68
69
included:
- Sources
- SwiftLoggerSampleApp
disabled_rules:
- opening_brace
- nesting
- type_contents_order
opt_in_rules:
- array_init
- attributes
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- empty_collection_literal
- empty_count
- empty_string
- extension_access_modifier
- fatal_error_message
- force_unwrapping
- first_where
- flatmap_over_map_reduce
- implicitly_unwrapped_optional
- implicit_return
- joined_default_parameter
- let_var_whitespace
- literal_expression_end_indentation
- multiline_arguments
- multiline_function_chains
- multiline_literal_brackets
- multiline_parameters
- operator_usage_whitespace
- pattern_matching_keywords
- prefer_zero_over_explicit_init
- private_subject
- reduce_into
- redundant_nil_coalescing
- sorted_first_last
- sorted_imports
- switch_case_on_newline
- toggle_bool
- type_contents_order
- unneeded_parentheses_in_closure_argument
- unowned_variable_capture
- unused_declaration
- unused_import
- vertical_parameter_alignment_on_call
- yoda_condition
identifier_name:
min_length:
error: 2
warning: 3
excluded:
- id
cyclomatic_complexity: 10
file_length: 400
function_body_length: 50
closure_body_length: 30
function_parameter_count: 5
line_length:
warning: 140
ignores_comments: true