Skip to content

Instantly share code, notes, and snippets.

@dmitris
Created September 20, 2012 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitris/3754876 to your computer and use it in GitHub Desktop.
Save dmitris/3754876 to your computer and use it in GitHub Desktop.
output of "mojito jslint app . -p"
$ mojito jslint -p app .
mojits/RoutingMojit/autoload/compiled/inlinecss.common.js
1 1,43: Expected exactly one space between 'function' and '('.
YUI.add("inlinecss/RoutingMojit", function(Y, NAME) {
2 2,5: Missing 'use strict' statement.
YUI.namespace("_mojito._cache.compiled.css.inline");
3 3,9: Unexpected dangling '_' in '_mojito'.
YUI._mojito._cache.compiled.css.inline = {"/static/RoutingMojit/assets/index.css":"dt { font-weight: bold; }.sel { background-color: #FF4; }"};
4 3,17: Unexpected dangling '_' in '_cache'.
YUI._mojito._cache.compiled.css.inline = {"/static/RoutingMojit/assets/index.css":"dt { font-weight: bold; }.sel { background-color: #FF4; }"};
5 3,87: Missing space between ':' and 'dt { font-weight: bold; }.sel { background-color: #FF4; }'.
YUI._mojito._cache.compiled.css.inline = {"/static/RoutingMojit/assets/index.css":"dt { font-weight: bold; }.sel { background-color: #FF4; }"};
mojits/RoutingMojit/controller.server.js
1 32,11: Expected 'ac' at column 13, not column 11.
ac.done(route_info(ac));
2 32,19: 'route_info' was used before it was defined.
ac.done(route_info(ac));
3 33,11: Unexpected '(space)'.
},
4 35,11: Expected 'ac' at column 13, not column 11.
ac.done(route_info(ac));
5 35,19: 'route_info' was used before it was defined.
ac.done(route_info(ac));
6 38,1: Unexpected '(space)'.
7 41,7: Expected 'Y' at column 9, not column 7.
Y.log('route_info: ac = ' + JSON.stringify(ac), 'debug', "MYDEBUG");
8 42,7: Expected 'var' at column 9, not column 7.
var methods = "";
9 43,7: Expected 'var' at column 9, not column 7.
var name = "";
10 43,11: Combine this with the previous 'var' statement.
var name = "";
11 44,7: Expected 'vac' at column 9, not column 7.
vac action = ac.action;
12 44,7: 'vac' was used before it was defined.
vac action = ac.action;
13 44,7: Expected an assignment or function call and instead saw an expression.
vac action = ac.action;
14 44,10: Expected ';' and instead saw 'action'.
vac action = ac.action;
15 44,11: Expected 'action' at column 9, not column 11.
vac action = ac.action;
16 44,11: 'action' was used before it was defined.
vac action = ac.action;
17 45,7: Expected 'var' at column 9, not column 7.
var path = ac.http.getRequest().url;
18 45,11: Combine this with the previous 'var' statement.
var path = ac.http.getRequest().url;
19 46,7: Expected 'ac' at column 9, not column 7.
ac.url.getRouteMaker();
20 47,7: Expected 'if' at column 9, not column 7.
if (path === "/" && action === "index") {
21 48,9: Expected 'name' at column 13, not column 9.
name = ac.app.routes.root_route.name;
22 49,9: Expected 'Object' at column 13, not column 9.
Object.keys(ac.app.routes.root_route.verbs).forEach(function(n) {
23 50,11: Expected 'methods' at column 17, not column 11.
methods += n + ", ";
24 51,9: Expected '}' at column 13, not column 9.
});
25 52,7: Expected '}' at column 9, not column 7.
} else if (action === "index") {
26 54,9: Expected 'name' at column 13, not column 9.
name = ac.app.routes.index_route.name;
27 55,9: Expected 'Object' at column 13, not column 9.
Object.keys(ac.app.routes.index_route.verbs).forEach(function(n) {
28 56,11: Expected 'methods' at column 17, not column 11.
methods += n + ", ";
29 57,9: Expected '}' at column 13, not column 9.
});
30 57,12: Unexpected '(space)'.
});
31 58,7: Expected '}' at column 9, not column 7.
} else {
32 60,9: Expected 'name' at column 13, not column 9.
name = ac.app.routes.show_route.name;
33 61,9: Expected 'Object' at column 13, not column 9.
Object.keys(ac.app.routes.show_route.verbs).forEach(function(n) {
34 62,11: Expected 'methods' at column 17, not column 11.
methods += n + ", ";
35 63,9: Expected '}' at column 13, not column 9.
});
36 64,7: Expected '}' at column 9, not column 7.
}
37 65,7: Expected 'console' at column 9, not column 7.
console.log("DMDEBUG methods before replace: " + methods);
38 66,7: Expected 'return' at column 9, not column 7.
return {
39 67,9: Expected 'path' at column 13, not column 9.
"path" : path,
40 68,9: Expected 'name' at column 13, not column 9.
"name" : name,
41 70,9: Expected 'methods' at column 13, not column 9.
"methods" : methods.replace(/, $/, "");
42 70,47: Expected ';' at column 9, not column 47.
"methods" : methods.replace(/, $/, "");
43 70,47: Expected '}' to match '{' from line 66 and instead saw ';'.
"methods" : methods.replace(/, $/, "");
44 70,48: Expected ';' and instead saw '}'.
"methods" : methods.replace(/, $/, "");
45 71,7: Expected '}' at column 5, not column 7.
}
46 72,5: Expected '}' at column 1, not column 5.
}
47 74,1: Expected '}' at column 5, not column 1.
}, '0.0.1', {requires: ['mojito-url-addon']});
48 74,1: Expected ')' to match '(' from line 5 and instead saw '}'.
}, '0.0.1', {requires: ['mojito-url-addon']});
49 74,2: Expected ';' and instead saw ','.
}, '0.0.1', {requires: ['mojito-url-addon']});
50 74,2: Expected ',' at column 1, not column 2.
}, '0.0.1', {requires: ['mojito-url-addon']});
51 74,2: Too many errors. (98% scanned).
57 errors found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment