public
Created

output of "mojito jslint app . -p"

  • Download Gist
mojito_jslint_output
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
$ 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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.