-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
I like the following Ruby format to pass parameters into methods:
price = default_price * NightsCalculator.new(
start_date,
end_date).nights_countbut the FirstParameterIndentation style rule complaints about this. It assumes that only the following variants are possible:
price = default_price * NightsCalculator.new(start_date,
end_date).nights_countand
price = default_price * NightsCalculator.new(
start_date,
end_date).nights_countBut the first one requires more symbols per line. And the second one is not readable in my mind.
What do you think is it make sense to pass code from the my preference?