summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-03-16 15:27:52 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-20 14:00:53 +0000
commit560f40b2bfcccd731708be9ed49676a2ca72a146 (patch)
treed665395f91d806632f2e62141ecb3633bc579905 /SConstruct
parentaadfd71fcbc2ccb6bd6406a19fc9c33291774d2e (diff)
downloadmongo-560f40b2bfcccd731708be9ed49676a2ca72a146.tar.gz
SERVER-46364 Move errorcodes check to lint phase.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct18
1 files changed, 8 insertions, 10 deletions
diff --git a/SConstruct b/SConstruct
index e6a4f911790..a94374a1d40 100644
--- a/SConstruct
+++ b/SConstruct
@@ -4134,13 +4134,6 @@ incremental_link = Tool('incremental_link')
if incremental_link.exists(env):
incremental_link(env)
-def checkErrorCodes():
- import buildscripts.errorcodes as x
- if x.check_error_codes() == False:
- env.FatalError("next id to use: {0}", x.get_next_code())
-
-checkErrorCodes()
-
# Resource Files are Windows specific
def env_windows_resource_file(env, path):
if env.TargetOSIs('windows'):
@@ -4219,12 +4212,17 @@ lint_py = env.Command(
action="$PYTHON ${SOURCES[0]} lint",
)
-env.Alias( "lint" , [ lint_py, eslint, clang_format, pylinters ] )
-env.Alias( "lint-fast" , [ eslint, clang_format, pylinters ] )
+lint_errorcodes = env.Command(
+ target="#lint-errorcodes",
+ source=["buildscripts/errorcodes.py"],
+ action="$PYTHON ${SOURCES[0]} --quiet",
+)
+
+env.Alias( "lint" , [ lint_py, eslint, clang_format, pylinters, lint_errorcodes ] )
+env.Alias( "lint-fast" , [ eslint, clang_format, pylinters, lint_errorcodes ] )
env.AlwaysBuild( "lint" )
env.AlwaysBuild( "lint-fast" )
-
# ---- INSTALL -------
def getSystemInstallName():