Add Zulip-specific details in jslint used_before_a error message.

Previously, it wasn't clear why you were getting an error when trying
to reference a newly added global variable.
This commit is contained in:
Kara McNair 2015-12-07 13:38:21 -05:00 committed by Tim Abbott
parent 2be7ac8d70
commit c947f3ed3c
1 changed files with 4 additions and 1 deletions

View File

@ -607,7 +607,10 @@ var JSLINT = (function () {
use_object: "Use the object literal notation {}.", use_object: "Use the object literal notation {}.",
use_or: "Use the || operator.", use_or: "Use the || operator.",
use_param: "Use a named parameter.", use_param: "Use a named parameter.",
used_before_a: "'{a}' was used before it was defined.", used_before_a: "'{a}' was used before it was defined. (If you " +
"have added a new module, you need to add it to the whitelist " +
"in tools/jslist/check-all.js; if it's a new global you should " +
"change it to be an export of the appropriate module)",
var_a_not: "Variable {a} was not declared correctly.", var_a_not: "Variable {a} was not declared correctly.",
weird_assignment: "Weird assignment.", weird_assignment: "Weird assignment.",
weird_condition: "Weird condition.", weird_condition: "Weird condition.",