forked from OpenAssetIO/OpenAssetIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPPLINT.cfg
20 lines (20 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
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.
# -whitespace/parens: Conflicts with ClangFormat in function pointer
# signatures.
filter=-runtime/references,-readability/nolint,-readability/check,-whitespace/braces
filter=-readability/casting,-whitespace/parens