1
+ excluded :
2
+ - ${PWD}/Carthage
3
+ - ${PWD}/Pods
4
+ - ${PWD}/DerivedData
5
+
6
+ disabled_rules :
7
+ - discarded_notification_center_observer
8
+ - notification_center_detachment
9
+ - orphaned_doc_comment
10
+ - todo
11
+ - unused_capture_list
12
+ - identifier_name
13
+ - cyclomatic_complexity
14
+
15
+ opt_in_rules :
16
+ - array_init
17
+ - attributes
18
+ - closure_end_indentation
19
+ - closure_spacing
20
+ - collection_alignment
21
+ - colon # promote to error
22
+ - convenience_type
23
+ - discouraged_object_literal
24
+ - empty_collection_literal
25
+ - empty_count
26
+ - empty_string
27
+ - enum_case_associated_values_count
28
+ - fatal_error_message
29
+ - first_where
30
+ - force_unwrapping
31
+ - implicitly_unwrapped_optional
32
+ - indentation_width
33
+ - last_where
34
+ - legacy_random
35
+ - literal_expression_end_indentation
36
+ - multiline_arguments
37
+ - multiline_function_chains
38
+ - multiline_literal_brackets
39
+ - multiline_parameters
40
+ - multiline_parameters_brackets
41
+ - operator_usage_whitespace
42
+ - overridden_super_call
43
+ - pattern_matching_keywords
44
+ - prefer_self_type_over_type_of_self
45
+ - redundant_nil_coalescing
46
+ - redundant_type_annotation
47
+ - strict_fileprivate
48
+ - toggle_bool
49
+ - trailing_closure
50
+ - unneeded_parentheses_in_closure_argument
51
+ - unused_import
52
+ - vertical_whitespace_closing_braces
53
+ - vertical_whitespace_opening_braces
54
+ - yoda_condition
55
+
56
+
57
+ custom_rules :
58
+ array_constructor :
59
+ name : " Array/Dictionary initializer"
60
+ regex : ' [let,var] .+ = (\[.+\]\(\))'
61
+ capture_group : 1
62
+ message : " Use explicit type annotation when initializing empty arrays and dictionaries"
63
+ severity : warning
64
+
65
+
66
+ attributes :
67
+ always_on_same_line :
68
+ - " @IBSegueAction"
69
+ - " @IBAction"
70
+ - " @NSManaged"
71
+ - " @objc"
72
+
73
+ force_cast : warning
74
+ force_try : warning
75
+ function_body_length :
76
+ warning : 60
77
+
78
+ legacy_hashing : error
79
+
80
+ identifier_name :
81
+ excluded :
82
+ - i
83
+ - id
84
+ - x
85
+ - y
86
+ - z
87
+
88
+ indentation_width :
89
+ indentation_width : 4
90
+ include_comments : false
91
+
92
+ line_length :
93
+ ignores_urls : true
94
+ ignores_function_declarations : true
95
+ ignores_comments : true
96
+
97
+ multiline_arguments :
98
+ first_argument_location : next_line
99
+ only_enforce_after_first_closure_on_first_line : true
100
+
101
+ private_over_fileprivate :
102
+ validate_extensions : true
103
+
104
+ trailing_whitespace :
105
+ ignores_empty_lines : false
106
+ ignores_comments : true
107
+
108
+ vertical_whitespace :
109
+ max_empty_lines : 2
0 commit comments