-
Notifications
You must be signed in to change notification settings - Fork 4
/
CPPLINT.cfg
26 lines (22 loc) · 1.01 KB
/
CPPLINT.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
filter=-legal/copyright,-whitespace/braces
linelength=120
root=knp
# - Do not check access modifier indentation.
# CPPLint enforces +1, but our rule is no indentation.
# - Do not check NOLINT* directives.
# NOLINT is used by clang-tidy.
# - Don't check TODO format.
# // TODO(my_username): Stuff.
# - Don't check includes subdirectories.
# Allow includes like "common.h".
# - Sometimes non-const references more preferable than pointers.
# Is this a non-const reference? If so, make const or use a pointer: PopulationType &population.
# - build/c++11 - don't check headers blacklisted by Google.
# Chromium team uses own headers instead of standard.
# - whitespace/newline
# An else should appear on the same line as the preceding }
filter=-whitespace/indent,-readability/nolint,-readability/todo,-build/include_subdir,-runtime/references,-build/c++11,-whitespace/newline, -whitespace/parens
# Python framework macroses.
filter=-readability/braces
# Need to support OCLint special comments.
filter=-whitespace/comments