The behaviour of the rule validation is either defined wrong or undefined for the situation when functions are chained without line breaking, whereas arguments in some functions have line breaks.
For example:
object.func1(arg1: value1,
arg2: value2).func2()
will generate a warning, whilst it shouldn't, in my opinion.
0.28.1disabled_rules:
- type_name
- identifier_name
- nesting
- file_length
- cyclomatic_complexity
- weak_delegate
- leading_whitespace
- multiple_closures_with_trailing_closure
opt_in_rules:
- contains_over_first_not_nil
- empty_count
- first_where
- vertical_parameter_alignment_on_call
- overridden_super_call
- operator_usage_whitespace
- array_init
- closure_spacing
- anyobject_protocol
- empty_xctest_method
- explicit_init
- fatal_error_message
- identical_operands
- legacy_random
- let_var_whitespace
- redundant_nil_coalescing
- static_operator
- unused_private_declaration
- yoda_condition
- redundant_type_annotation
- multiline_function_chains
- modifier_order
- multiline_arguments
- multiline_parameters
line_length: 200
I'm seeing the same issue with:
Triggering example:
private func enlargedFrame(_ view: UIView, padding: CGFloat = 10.0) -> CGRect {
return CGRect(
x: view.frame.origin.x - padding,
y: view.frame.origin.y - padding,
width: view.frame.size.width + (padding * 2),
height: view.frame.size.height + (padding * 2)
)
}
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!
Most helpful comment
I'm seeing the same issue with:
Triggering example: