1
+ # Compiled with 0.30.1 rules
2
+
1
3
# Don't add any files/directories to the 'include:' section. Everything not
2
4
# listed under 'excluded:' should be linted.
3
5
# included:
@@ -14,6 +16,7 @@ reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit)
14
16
15
17
# enabled_rules_for_documentation:
16
18
# - attributes
19
+ # - block_based_kvo
17
20
# - class_delegate_protocol
18
21
# - closing_brace
19
22
# - closure_end_indentation
@@ -22,84 +25,168 @@ reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit)
22
25
# - colon
23
26
# - comma
24
27
# - compiler_protocol_init
28
+ # - contains_over_first_not_nil
25
29
# - control_statement
26
30
# - custom_rules
27
31
# - discarded_notification_center_observer
32
+ # - discouraged_direct_init
33
+ # - duplicate_imports
28
34
# - dynamic_inline
29
35
# - empty_parameters
30
36
# - empty_parentheses_with_trailing_closure
37
+ # - fallthrough
38
+ # - file_length
31
39
# - first_where
32
40
# - force_cast
33
41
# - force_try
34
42
# - force_unwrapping
35
43
# - generic_type_name
36
- # - identifier
44
+ # - is_disjoint
45
+ # - identifier_name
46
+ # - inert_defer
37
47
# - implicit_getter
38
48
# - implicitly_unwrapped_optional
39
49
# - leading_whitespace
40
50
# - legacy_cggeometry_functions
41
51
# - legacy_constant
42
52
# - legacy_constructor
53
+ # - legacy_hashing
43
54
# - legacy_nsgeometry_functions
44
55
# - mark
45
- # - missing_docs
46
56
# - nesting
47
57
# - notification_center_detachment
58
+ # - no_fallthrough_only
48
59
# - object_literal
49
60
# - opening_brace
50
61
# - operator_usage_whitespace
51
62
# - operator_whitespace
52
63
# - private_outlet
53
64
# - private_unit_test
65
+ # - protocol_property_accessors_order
54
66
# - redundant_discardable_let
55
67
# - redundant_nil_coalescing
68
+ # - redundant_objc_attribute
56
69
# - redundant_optional_initialization
70
+ # - redundant_set_access_control
57
71
# - redundant_string_enum_value
58
72
# - return_arrow_whitespace
59
73
# - statement_position
74
+ # - superfluous_disable_command
75
+ # - switch_case_alignment
60
76
# - syntactic_sugar
61
77
# - trailing_comma
62
78
# - trailing_newline
63
79
# - trailing_semicolon
64
80
# - trailing_whitespace
65
81
# - type_body_length
66
82
# - type_name
83
+ # - unneeded_break_in_switch
67
84
# - unused_closure_parameter
85
+ # - unused_control_flow_label
68
86
# - unused_enumerated
69
87
# - unused_optional_binding
70
- # - valid_docs
88
+ # - unused_setter_value
71
89
# - valid_ibinspectable
72
90
# - vertical_parameter_alignment
73
91
# - vertical_whitespace
74
92
# - weak_delegate
93
+ # - xctfail_message
75
94
76
95
opt_in_rules :
96
+ - anyobject_protocol
97
+ - closure_body_length
98
+ - collection_alignment
99
+ - convenience_type
100
+ - empty_xctest_method
77
101
- explicit_init
78
102
- fatal_error_message
103
+ - function_default_parameter_at_end
104
+ - identical_operands
105
+ - joined_default_parameter
106
+ - legacy_random
107
+ - lower_acl_than_parent
108
+ - multiline_arguments
109
+ - multiline_function_chains
110
+ - multiline_parameters
111
+ - nslocalizedstring_key
79
112
- overridden_super_call
80
113
- prohibited_super_call
81
114
- redundant_void_return
115
+ - sorted_first_last
116
+ - static_operator
117
+ - strong_iboutlet
118
+ - unavailable_function
119
+ - unused_import
120
+ - unused_private_declaration
121
+ - vertical_parameter_alignment_on_call
122
+ - xct_specific_matcher
82
123
83
124
disabled_rules :
125
+ - array_init
84
126
- conditional_returns_on_newline
85
127
- cyclomatic_complexity
128
+ - discouraged_object_literal
129
+ - discouraged_optional_boolean
130
+ - discouraged_optional_collection
86
131
- empty_count
132
+ - empty_enum_arguments
133
+ - empty_string
134
+ - explicit_acl
135
+ - explicit_enum_raw_value
136
+ - explicit_self
137
+ - explicit_top_level_acl
87
138
- explicit_type_interface
139
+ - extension_access_modifier
88
140
- file_header
141
+ - file_name
89
142
- for_where
143
+ - implicit_return
144
+ - let_var_whitespace
145
+ - missing_docs
146
+ - multiline_arguments_brackets
147
+ - multiline_literal_brackets
148
+ - multiline_parameters_brackets
90
149
- nimble_operator
150
+ - no_extension_access_modifier
151
+ - no_grouping_extension
152
+ - number_separator
153
+ - override_in_extension
154
+ - pattern_matching_keywords
155
+ - prefixed_toplevel_constant
156
+ - private_action
157
+ - private_over_fileprivate
158
+ - prohibited_interface_builder
159
+ - quick_discouraged_call
160
+ - quick_discouraged_focused_test
161
+ - quick_discouraged_pending_test
162
+ - redundant_type_annotation
163
+ - required_enum_case
164
+ - single_test_class
165
+ - sorted_imports
91
166
- shorthand_operator
167
+ - strict_fileprivate
92
168
- switch_case_on_newline
93
169
- todo
170
+ - toggle_bool
171
+ - trailing_closure
172
+ - unneeded_parentheses_in_closure_argument
173
+ - untyped_error_in_catch
174
+ - vertical_whitespace_between_cases
94
175
- void_return
95
- - identifier_name
176
+ - yoda_condition
96
177
97
- # These next four rules are recommended to be enabled on a project-by-project
178
+ # These next rules are recommended to be enabled on a project-by-project
98
179
# basis with specific configurations that fit the project style.
99
180
- function_body_length
100
181
- function_parameter_count
101
182
- large_tuple
183
+ - last_where
102
184
- line_length
185
+ - literal_expression_end_indentation
186
+ - modifier_order
187
+ - multiple_closures_with_trailing_closure
188
+ - vertical_whitespace_closing_braces
189
+ - vertical_whitespace_opening_braces
103
190
104
191
# # Rule Configuration
105
192
@@ -110,12 +197,20 @@ file_length:
110
197
warning : 750
111
198
error : 1500
112
199
113
- nesting :
114
- type_level : 3
115
-
116
200
identifier_name :
117
- allowed_symbols : _
201
+ allowed_symbols : " _ "
118
202
min_length : 2
203
+ excluded :
204
+ - id
205
+ - r
206
+ - g
207
+ - b
208
+ - a
209
+ - x
210
+ - y
119
211
120
- type_name :
121
- min_length : 2
212
+ lower_acl_than_parent :
213
+ severity : error
214
+
215
+ nesting :
216
+ type_level : 3
0 commit comments