mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
Add a check for blueslip.warning to perform_extra_js_checks
(imported from commit 92872542c4a97c31d7864137b759abb8bf26a551)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user