tests/hghave.py
changeset 35043 5d4369079c86
parent 34892 e1458bce84db
child 35139 a2e927ded455
--- a/tests/hghave.py	Sat Nov 11 14:14:38 2017 +0800
+++ b/tests/hghave.py	Sat Nov 11 15:07:21 2017 +0800
@@ -444,6 +444,10 @@
     return matchoutput("clang-format --help",
                        br"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.")
 
+@check("jshint", "JSHint static code analysis tool")
+def has_jshint():
+    return matchoutput("jshint --version 2>&1", br"jshint v")
+
 @check("pygments", "Pygments source highlighting library")
 def has_pygments():
     try: