mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cong Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-3523) Teach cpplint to catch more coding style issues
Date Fri, 25 Sep 2015 22:54:04 GMT
Cong Wang created MESOS-3523:
--------------------------------

             Summary: Teach cpplint to catch more coding style issues
                 Key: MESOS-3523
                 URL: https://issues.apache.org/jira/browse/MESOS-3523
             Project: Mesos
          Issue Type: Bug
            Reporter: Cong Wang


Our current cpplint hook can't catch the following coding style issues:

1. Two blank lines before public/private/protect, for example:
{noformat}
class foo{
public:
 foo();


private:
  int bar;


protect:
  int biz;
};
{noformat}

2. Braces not in the same line when the definition is empty, for example,
{noformat}
class Foo {
private:
  Foo()
  {}
};
{noformat}

3. Comment line longer than 70 characters.




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

Mime
View raw message