Skip to content

False positive for indent namespace error. #293

@trivialfis

Description

@trivialfis

Hi, we are running into linter errors related to indent after upgrading cpplint to 2.0. I think the error is a false positive as it raises errors for parameter indentation.

test.cc:

#include <iostream>
namespace mynamespace {
struct SuperLongTypeName {};

void fn(SuperLongTypeName a, SuperLongTypeName b, SuperLongTypeName c,
        SuperLongTypeName d) {
  std::cout << "foo" << std::endl;
}
}  // namespace mynamespace

error

./test.cc:6:  Do not indent within a namespace.  [whitespace/indent_namespace] [4]

Might be related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions