Add a check for blueslip.warning to perform_extra_js_checks

(imported from commit 92872542c4a97c31d7864137b759abb8bf26a551)
This commit is contained in:
Jason Michalski
2014-02-05 10:43:55 -05:00
parent 515e64175f
commit 1136d399ca

View File

@@ -90,6 +90,10 @@ def perform_extra_js_checks(fn):
sys.stdout.write('The keyword "function" should be followed by a space in %s line %s\n' % (fn, i+1))
print line
failed = True
if 'blueslip.warning(' in line:
sys.stdout.write('The module blueslip has no function warning, try using blueslip.warn on line %s' % (i+1, ))
print line
failed = True
return failed