Skip to content

Commit a64bec8

Browse files
authored
Remove the "unapproved C++ header" lint warning. (#842)
* Remove the "unapproved C++ header" lint warning. (Also add a note explaining each lint warning we ignore.)
1 parent 1ba3835 commit a64bec8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

scripts/gha/lint_commenter.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@
3737
import urllib.parse
3838

3939
# Put any lint warnings you want to fully ignore into this list.
40+
# (Include a short explanation of why.)
4041
IGNORE_LINT_WARNINGS = [
41-
'build/include_subdir',
42-
'readability/casting',
43-
'whitespace/indent',
44-
'whitespace/line_length'
42+
'build/include_subdir', # doesn't know about our include paths
43+
'build/c++11', # ignore "unapproved c++11 header" warning
44+
'readability/casting', # allow non-C++ casts in rare occasions
45+
'whitespace/indent', # we rely on our code formatter for this...
46+
'whitespace/line_length' # ...and for this
4547
]
46-
# Exclude files within the following paths (specified as regexes)
48+
# Exclude files within the following paths (specified as regexes).
4749
EXCLUDE_PATH_REGEX = [
48-
r'^analytics/ios_headers/'
50+
# These files are copied from an external repo and are outside our control.
51+
r'^analytics/ios_headers/'
4952
]
5053
# The linter gives every error a confidence score.
5154
# 1 = It's most likely not really an issue.

0 commit comments

Comments
 (0)