diff --git a/.gitignore b/.gitignore index 70254bd0936f2..5ce2c268169c8 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,3 @@ log/ # Python *.pyc - diff --git a/CPPLINT.cfg b/CPPLINT.cfg new file mode 100644 index 0000000000000..4dbbe0596b5db --- /dev/null +++ b/CPPLINT.cfg @@ -0,0 +1,13 @@ +# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_cpplint/ament_cpplint/main.py#L64-L120 +set noparent +linelength=100 +includeorder=standardcfirst +filter=-build/c++11 # we do allow C++11 +filter=-build/namespaces_literals # we allow using namespace for literals +filter=-runtime/references # we consider passing non-const references to be ok +filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions +filter=-whitespace/indent # we don't indent keywords like public, protected and private with one space +filter=-whitespace/parens # we allow closing parenthesis to be on the next line +filter=-whitespace/semicolon # we allow the developer to decide about whitespace after a semicolon +filter=-build/header_guard # TODO(Kenji Miyake): Support ROS-style rule in cpplint or add auto-fix script in pre-commit +filter=-build/include_order # we use the custom include order