@@ -18,72 +18,62 @@ excluded:
18
18
- .ruby-lsp
19
19
- derived_data
20
20
21
- disabled_rules :
22
- - large_tuple
23
- - multiple_closures_with_trailing_closure
24
- - todo
25
- - function_parameter_count
26
- - type_name
27
- - nesting
28
- - identifier_name
29
- - file_length
30
- - type_body_length
31
- - opening_brace
32
- - line_length
33
- - switch_case_alignment
34
- - notification_center_detachment
35
-
36
- # TODO: https://github.com/GetStream/ios-issues-tracking/issues/538
37
- - attributes # it should be included in `opt_in_rules`
38
- - orphaned_doc_comment
39
- - void_function_in_ternary
40
- - unneeded_synthesized_initializer
41
- - ns_number_init_as_function_reference
42
- - for_where
43
-
44
- opt_in_rules :
45
- - convenience_type
46
- - empty_string
47
- - fatal_error_message
48
- - first_where
49
- - toggle_bool
50
- - identical_operands
21
+ only_rules :
22
+ - attribute_name_spacing
23
+ - closing_brace
24
+ - colon
25
+ - comma
26
+ - comment_spacing
27
+ - control_statement
28
+ - custom_rules
29
+ - cyclomatic_complexity
30
+ - duplicate_imports
31
+ - empty_enum_arguments
32
+ - empty_parameters
33
+ - empty_parentheses_with_trailing_closure
34
+ - file_name_no_space
51
35
- joined_default_parameter
52
- - unavailable_function
53
- - explicit_init
36
+ - leading_whitespace
37
+ - legacy_cggeometry_functions
38
+ - legacy_constant
39
+ - legacy_constructor
40
+ - legacy_nsgeometry_functions
41
+ - mark
42
+ - multiline_arguments
43
+ - no_space_in_method_call
44
+ - prefer_type_checking
45
+ - private_over_fileprivate
46
+ - private_unit_test
47
+ - protocol_property_accessors_order
48
+ - redundant_discardable_let
49
+ - redundant_objc_attribute
54
50
- redundant_optional_initialization
51
+ - redundant_sendable
52
+ - redundant_void_return
53
+ - return_arrow_whitespace
55
54
- syntactic_sugar
56
- - multiline_arguments
57
- - multiline_function_chains
58
- - file_name_no_space
59
-
60
- analyzer_rules :
55
+ - toggle_bool
56
+ - trailing_comma
57
+ - trailing_newline
58
+ - trailing_semicolon
59
+ - trailing_whitespace
60
+ - unneeded_break_in_switch
61
+ - unneeded_override
62
+ - unused_closure_parameter
63
+ - unused_control_flow_label
61
64
- unused_import
65
+ - vertical_whitespace
66
+ - void_return
62
67
63
68
multiline_arguments :
64
69
only_enforce_after_first_closure_on_first_line : true
65
70
66
- # TODO: https://github.com/GetStream/ios-issues-tracking/issues/538
67
- # attributes:
68
- # always_on_same_line: ["@IBAction", "@NSManaged", "@objc"]
69
- # always_on_line_above: ["@discardableResult"]
70
-
71
71
trailing_whitespace :
72
72
ignores_empty_lines : true
73
73
74
- function_body_length :
75
- warning : 150
76
- error : 200
77
-
78
74
file_name_no_space :
79
75
severity : error
80
76
81
- identifier_name :
82
- excluded :
83
- [r, g, b, a, x, y, z, dx, dy, dz, i, j, k, id, op, or, me, at, to, in]
84
- allowed_symbols : ["_"]
85
- validates_start_with_lowercase : " warning"
86
-
87
77
cyclomatic_complexity :
88
78
ignores_case_statements : true
89
79
warning : 25
0 commit comments