Skip to content

Commit f4c19e7

Browse files
authored
[tools] Disable cpplint's build/include checks (#22264)
1 parent 7b5a831 commit f4c19e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CPPLINT.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ filter=+build/pragma_once
2020
# Disable cpplint's include order. We have our own via //tools:drakelint.
2121
filter=-build/include_order
2222

23+
# Disable cpplint's check to include the h file atop the cc file (along with
24+
# some other, even less relevant checks). Given the layout of bazel's runfiles
25+
# during linting and our include path customizations, cpplint yields false
26+
# positives because it's unable to discern the root of our include path.
27+
filter=-build/include
28+
2329
# We do not care about the whitespace details of a TODO comment. It is not
2430
# relevant for easy grepping, and the GSG does not specify any particular
2531
# whitespace style. (We *do* care what the "TODO(username)" itself looks like

0 commit comments

Comments
 (0)