-
Notifications
You must be signed in to change notification settings - Fork 3
/
CPPLINT.cfg
22 lines (22 loc) · 1.08 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
set noparent
linelength=99
root=.
# -runtime/references: Allow non-const references as function params.
# -readability/nolint: Don't complain if unrecognized checks are
# disabled by a NOLINT comment. This is because both cpplint
# and clang-tidy use NOLINT, annoyingly.
# -readability/check: CppLint seems to assume `CHECK` is a Google Test
# macro, not a Catch2 macro, and erroneously complains that we should
# use `CHECK_EQ` instead.
# -whitespace/braces: Causes false positives with uniform initialization
# syntax (e.g. `std::string_view{data, size}`). This check is also
# performed by ClangFormat, anyway.
# -readability/casting: Causes false positives with Trompeloeil mocks,
# where CppLint seems to think a macro is actually a C-style cast.
# This check is also performed by Clang-Tidy, anyway.
# -build/c++11 Causes e.g. "<thread> is an unapproved C++11 header",
# which is specific for Chromium devs, apparently.
filter=-runtime/references,-readability/nolint,-readability/check,-whitespace/braces
filter=-readability/casting
filter=-build/include_subdir
filter=-build/c++11