summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-03-10 12:20:59 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-03-18 16:57:23 -0400
commitd82956a6fe2e7d5dd6216e66e95900d73dbf2e0c (patch)
tree7152a153bb9a50d13e1afaea80fd1a1a45c481fa /SConstruct
parentfde6349069e18220e5d417f9d12dffab36b8942a (diff)
downloadmongo-d82956a6fe2e7d5dd6216e66e95900d73dbf2e0c.tar.gz
SERVER-22338 Integrate JavaScript linting into scons lint target
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 1d52e85dea4..c19d013a79c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2516,6 +2516,10 @@ checkErrorCodes()
# --- lint ----
def doLint( env , target , source ):
+ import buildscripts.eslint
+ if not buildscripts.eslint.lint(None, dirmode=True, glob=["jstests/", "src/mongo/"]):
+ raise Exception("ESLint errors")
+
import buildscripts.clang_format
if not buildscripts.clang_format.lint(None, []):
raise Exception("clang-format lint errors")