You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "José Guilherme Vanz (JIRA)" <ji...@apache.org> on 2015/08/09 07:03:45 UTC

[jira] [Commented] (MESOS-2578) Add '{' on newline for function declarations in style checker

    [ https://issues.apache.org/jira/browse/MESOS-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14663262#comment-14663262 ] 

José Guilherme Vanz commented on MESOS-2578:
--------------------------------------------

https://reviews.apache.org/r/37266/
https://reviews.apache.org/r/37267/
https://reviews.apache.org/r/37268/

> Add '{' on newline for function declarations in style checker
> -------------------------------------------------------------
>
>                 Key: MESOS-2578
>                 URL: https://issues.apache.org/jira/browse/MESOS-2578
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Niklas Quarfot Nielsen
>            Assignee: José Guilherme Vanz
>            Priority: Trivial
>              Labels: mesosphere, newbie
>
> Similar to MESOS-2577; another common style mistake is to not move curly braces on a newline for function and class declarations:
> {code}
> class Foo {
>   void bar() {
>   ...
>   }
> };
> {code}
> vs
> {code}
> class Foo
> {
>   void bar()
>   {
>   ...
>   }
> };
> {code}
> This should be easy to check with our style checker too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)