diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-03-10 12:20:59 -0500 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-03-18 16:57:23 -0400 |
commit | d82956a6fe2e7d5dd6216e66e95900d73dbf2e0c (patch) | |
tree | 7152a153bb9a50d13e1afaea80fd1a1a45c481fa /SConstruct | |
parent | fde6349069e18220e5d417f9d12dffab36b8942a (diff) | |
download | mongo-d82956a6fe2e7d5dd6216e66e95900d73dbf2e0c.tar.gz |
SERVER-22338 Integrate JavaScript linting into scons lint target
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
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") |