Commit 32d0fc7c by Christine Lytwynec

Merge pull request #10622 from edx/clytwynec/jshint

Clytwynec/jshint
parents fb348772 9aa1f2b7
common/static/js/vendor **/vendor
lms/static/js/vendor node_modules
...@@ -272,11 +272,9 @@ def run_jshint(options): ...@@ -272,11 +272,9 @@ def run_jshint(options):
jshint_report = jshint_report_dir / "jshint.report" jshint_report = jshint_report_dir / "jshint.report"
_prepare_report_dir(jshint_report_dir) _prepare_report_dir(jshint_report_dir)
jshint_directories = ["common/static/js", "cms/static/js", "lms/static/js"]
sh( sh(
"jshint {list} --config .jshintrc >> {jshint_report}".format( "jshint {root} --config .jshintrc >> {jshint_report}".format(
list=(" ".join(jshint_directories)), jshint_report=jshint_report root=Env.REPO_ROOT, jshint_report=jshint_report
), ),
ignore_error=True ignore_error=True
) )
......
...@@ -12,7 +12,7 @@ set -e ...@@ -12,7 +12,7 @@ set -e
# Violations thresholds for failing the build # Violations thresholds for failing the build
export PYLINT_THRESHOLD=5650 export PYLINT_THRESHOLD=5650
export JSHINT_THRESHOLD=3700 export JSHINT_THRESHOLD=9390
doCheckVars() { doCheckVars() {
if [ -n "$CIRCLECI" ] ; then if [ -n "$CIRCLECI" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment