Skip to content

Commit cade75c

Browse files
committed
add lint.py, which ignore .ph.h and .ph.cc
1 parent 96e3ed5 commit cade75c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def process(fname, allow_type):
134134
arr = fname.rsplit('.', 1)
135135
if fname.find('#') != -1 or arr[-1] not in allow_type:
136136
return
137-
if arr[-1] in CXX_SUFFIX:
137+
if arr[-1] in CXX_SUFFIX and (not fname.endswith(".pb.h")) and (not fname.endswith(".pb.cc")):
138138
_HELPER.process_cpp(fname, arr[-1])
139139
if arr[-1] in PYTHON_SUFFIX:
140140
_HELPER.process_python(fname)

0 commit comments

Comments
 (0)