GNU bug report logs -
#16182
24.3.50; ruby-mode: Indentation style of multiline literals with hanging open paren inside other parens
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Wed, 18 Dec 2013 03:56:02 UTC
Severity: minor
Found in version 24.3.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 16182 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Personally I dislike this style, because you’re basically it obscures the semantics of the method arguments, but I acknowledge that I’ve seen it the wild. For me it would be more beneficial if we supported a variant of the style:
methods.each do |method| route_set.add_route( self, { path_info: route.route_compiled, request_method: method, }, route_info: route ) end
The current trunk indents this all wrong:
methods.each do |method| route_set.add_route( self, { path_info: route.route_compiled, request_method: method, }, route_info: route ) end
Something that’s not mentioned here, but it’s a bigger problem for the users is probably the fact that we don’t support the following indentation style:
x = if something
do_something
end
Even if I don’t use and (and the majority of Ruby hackers AFAIK) it’s still fairly popular. Currently this is the only supported option (which is arguably the most popular):
x = if something
do_something
end
--
Cheers,
Bozhidar
On Wednesday, December 18, 2013 at 6:05 AM, Dmitry Gutov wrote:
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16182
>
> Comments welcome.
[Message part 2 (text/html, inline)]
This bug report was last modified 11 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.