Skip to content

Commit 1653251

Browse files
committed
SERVER-25814 Do not lint the vendored gotools
1 parent 2a0e9db commit 1653251

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/mongo/gotools/*

buildscripts/clang_format.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,8 @@ def _git_ls_files(self, cmd):
500500
file_list = [line.rstrip()
501501
for line in gito.splitlines()
502502
if (line.startswith("jstests") or line.startswith("src"))
503-
and not line.startswith("src/third_party")]
503+
and not line.startswith("src/third_party/")
504+
and not line.startswith("src/mongo/gotools/")]
504505

505506
files_match = re.compile('\\.(h|cpp|js)$')
506507

buildscripts/utils.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,22 @@ def getAllSourceFiles( arr=None , prefix="." ):
2222
return arr
2323

2424
for x in os.listdir( prefix ):
25-
if x.startswith( "." ) or x.startswith( "pcre-" ) or x.startswith( "32bit" ) or x.startswith( "mongodb-" ) or x.startswith("debian") or x.startswith( "mongo-cxx-driver" ):
25+
if ( x.startswith( "." )
26+
or x.startswith( "pcre-" )
27+
or x.startswith( "32bit" )
28+
or x.startswith( "mongodb-" )
29+
or x.startswith( "debian" )
30+
or x.startswith( "mongo-cxx-driver" )
31+
or 'gotools' in x ):
2632
continue
33+
2734
# XXX: Avoid conflict between v8, v8-3.25 and mozjs source files in
2835
# src/mongo/scripting
2936
# Remove after v8-3.25 migration.
37+
3038
if x.find("v8-3.25") != -1 or x.find("mozjs") != -1:
3139
continue
40+
3241
full = prefix + "/" + x
3342
if os.path.isdir( full ) and not os.path.islink( full ):
3443
getAllSourceFiles( arr , full )

0 commit comments

Comments
 (0)