Skip to content

Commit 279409d

Browse files
committed
cpplintの設定を追加
1 parent 87cc95b commit 279409d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CPPLINT.cfg

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_cpplint/ament_cpplint/main.py#L64-L120
2+
set noparent
3+
linelength=100
4+
includeorder=standardcfirst
5+
filter=-build/c++11 # we do allow C++11
6+
filter=-build/namespaces_literals # we allow using namespace for literals
7+
filter=-runtime/references # we consider passing non-const references to be ok
8+
filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions
9+
filter=-whitespace/indent # we don't indent keywords like public, protected and private with one space
10+
filter=-whitespace/parens # we allow closing parenthesis to be on the next line
11+
filter=-whitespace/semicolon # we allow the developer to decide about whitespace after a semicolon
12+
filter=-build/header_guard # we automatically fix the names of header guards using pre-commit
13+
filter=-build/include_order # we use the custom include order
14+
filter=-build/include_subdir # we allow the style of "foo.hpp"

0 commit comments

Comments
 (0)