This report was build with JSLint, the JavaScript Verifier. JSLint is a JavaScript program that looks for problems in other JavaScript programs.
Here is the list of files in this report:
Lint at line 15 character 93: Use '===' to compare with '0'.
if(typeof Archetype.methodBuilders == "undefined" || Archetype.methodBuilders.length == 0 )
Lint at line 15 character 98: Line breaking error ')'.
if(typeof Archetype.methodBuilders == "undefined" || Archetype.methodBuilders.length == 0 )
Lint at line 16 character 9: Expected '{' and instead saw 'throw'.
throw "No Method Builder has been defined in Archetype.methodBuilders";
Lint at line 36 character 141: Missing semicolon.
var methodNames=$H(klass._private._definition).keys().findAll(function(key){return typeof klass._private._definition[key] == "function"});
Lint at line 49 character 49: Missing semicolon.
return methodName.match(b.regexp)});
Lint at line 54 character 48: Missing semicolon.
builder.build(klass, methodName)
Lint at line 120 character 2: Missing semicolon. } Lint at line 130 character 2: Missing semicolon. }
Lint at line 5 character 5: 'new' should not be used as a statement.
new Test.Unit.Runner({
Lint at line 5 character 5: Stopping, unable to continue. (4% scanned).
Lint at line 21 character 38: Missing semicolon.
Object.extend(this, Event.Listener)
Lint at line 41 character 61: Missing semicolon.
var names = parentsNames.collect(function(o) {return $U(o)});
Lint at line 200 character 17: 'templates' is already defined.
var templates = $H(componentDefinition.templates);
Lint at line 217 character 32: Missing semicolon.
var _private = this._private = {
Lint at line 217 character 33: Expected an identifier and instead saw '='.
var _private = this._private = {
Lint at line 217 character 33: Stopping, unable to continue. (80% scanned).
Lint at line 36 character 3: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
for( var m in klass.prototype) {
Lint at line 57 character 41: eval is evil.
this.__instance__ = eval('new klass');
Lint at line 71 character 64: Line breaking error ')'.
if (Archetype.Class.kind_of(module[prop], Function))
Lint at line 72 character 17: Expected '{' and instead saw '('.
(function (method)
Lint at line 80 character 17: Expected '{' and instead saw 'object'.
object[prop] = module[prop];
Lint at line 88 character 28: A constructor name should start with an uppercase letter.
var subproto = new this;
Lint at line 88 character 32: Missing '()' invoking a constructor.
var subproto = new this;
Lint at line 97 character 33: Line breaking error ')'.
for (var method in klass)
Lint at line 97 character 33: Line breaking error ')'.
for (var method in klass)
Lint at line 98 character 35: Line breaking error ')'.
if (klass[method] == c)
Lint at line 99 character 17: Expected '{' and instead saw 'return'.
return method;
Lint at line 127 character 16: eval is evil.
return eval('klass.prototype.isPrototypeOf(object)');
Lint at line 141 character 24: Line breaking error ')'.
while (--i >= 0)
Lint at line 142 character 13: Expected '{' and instead saw 'Object'.
Object.extend(this, arguments[i]);
Lint at line 148 character 24: Line breaking error ')'.
while (--i >= 0)
Lint at line 149 character 13: Expected '{' and instead saw 'Archetype'.
Archetype.Class.append_features(this, arguments[i]);
No problems found
Lint at line 7 character 3: Missing 'new' prefix when invoking a constructor. TALprocess(this.container, object);
No problems found
Lint at line 66 character 61: Missing semicolon.
Logger.warn("Cette fonction ne devrait pas etre appelee!")
No problems found
Lint at line 43 character 52: Line breaking error ')'.
if (typeof altContainerCssClass == "String")
Lint at line 44 character 13: Expected '{' and instead saw 'this'.
this.containerCssClass = altContainerCssClass;
Lint at line 57 character 48: Line breaking error ')'.
if (this.currentSlide < this.totalSlide)
Lint at line 58 character 13: Expected '{' and instead saw 'this'.
this.currentSlide++;
Lint at line 60 character 13: Expected '{' and instead saw 'this'.
this.currentSlide = this.originSlide;
Lint at line 68 character 34: Line breaking error ')'.
if (this.currentSlide > 0)
Lint at line 69 character 13: Expected '{' and instead saw 'this'.
this.currentSlide--;
Lint at line 71 character 13: Expected '{' and instead saw 'this'.
this.currentSlide = this.totalSlide;
No problems found
No problems found
Lint at line 35 character 8: 'new' should not be used as a statement. new Insertion.Bottom(parentElement, this.render(args)); Lint at line 35 character 8: Stopping, unable to continue. (44% scanned).
No problems found
Lint at line 45 character 82: Missing semicolon.
fireHello: function(){Logger.warn("Cette fonction ne devrait pas etre appelee!")}
Lint at line 1 character 20: Missing semicolon.
Archetype.i18n = {}
Lint at line 33 character 2: Missing semicolon. }
Lint at line 40 character 43: Line breaking error ')'.
if (typeof altCssClass == "string")
Lint at line 41 character 13: Expected '{' and instead saw 'this'.
this.clickReceiverCssClass = clickReceiverCssClass;
Lint at line 60 character 10: Missing semicolon.
}
Lint at line 61 character 50: Line breaking error ')'.
if (typeof this.totalSlide != "undefined")
Lint at line 62 character 13: Expected '{' and instead saw 'Object'.
Object.extend(options, {
Lint at line 116 character 13: Expected '{' and instead saw 'throw'.
throw ("This is an unsupported browser :(");
Lint at line 141 character 65: Line breaking error ')'.
if(typeof Archetype.pages.rootEquivalence == "undefined")
Lint at line 142 character 13: Expected '{' and instead saw 'Archetype'.
Archetype.pages.rootEquivalence=Archetype.path;
Lint at line 145 character 93: Bad escapement.
regexp = new RegExp("^.*" + Archetype.pages.rootEquivalence + "([a-zA-Z0-9%/]*)\.?.*$","");
Lint at line 157 character 49: Missing semicolon.
pageName = Archetype.parameters.page
Lint at line 164 character 70: Line breaking error ')'.
if(typeof window[Archetype.pages.pageName] == "undefined")
Lint at line 165 character 17: Expected '{' and instead saw 'throw'.
throw ("Can't find the object \"" + Archetype.pages.pageName + "\" which should have been added by \"" + Archetype.pages.urlPage + "\"");
Lint at line 166 character 75: Line breaking error ')'.
if(typeof window[Archetype.pages.pageName].main == "undefined")
Lint at line 167 character 17: Expected '{' and instead saw 'throw'.
throw ("Can't find the function \"" + Archetype.pages.pageName + ".main()\" which should have been added by \"" + Archetype.pages.urlPage + "\"");
Lint at line 170 character 10: Missing semicolon.
}
Lint at line 186 character 45: Line breaking error ')'.
if(Archetype.useArchetypeClass === true)
Lint at line 187 character 13: Expected '{' and instead saw 'Archetype'.
Archetype.addJS($U('Archetype.Class'), Archetype._loadEvents);
Lint at line 189 character 13: Expected '{' and instead saw 'Archetype'.
Archetype._loadEvents();
Lint at line 208 character 13: Expected '{' and instead saw 'Archetype'.
Archetype._joinBasicEnvironnementLoaded();
Lint at line 220 character 72: Use '!==' to compare with 'false'.
$exist(Archetype.classOverride) && Archetype.classOverride != false) {
Lint at line 253 character 31: Use '!==' to compare with 'null'.
if(Archetype.template != null) {
Lint at line 267 character 28: Use '!==' to compare with 'null'.
if(Archetype.template != null)
Lint at line 267 character 35: Line breaking error ')'.
if(Archetype.template != null)
Lint at line 268 character 13: Expected '{' and instead saw 'Archetype'.
Archetype.useTemplate(Archetype.template);
Lint at line 269 character 39: Line breaking error ')'.
if(Archetype.useEvents ===true)
Lint at line 270 character 13: Expected '{' and instead saw 'Archetype'.
Archetype.dispatchEvent("Environnement", "Loaded");
Lint at line 287 character 48: Line breaking error ')'.
if(Archetype.useArchetypeClass === true)
Lint at line 288 character 13: Expected '{' and instead saw 'Logger'.
Logger = Archetype.Class.singleton(Archetype.Loggers[loggerName]).instance();
Lint at line 356 character 34: Use '!==' to compare with 'true'.
if(script.loaded != true) {
Lint at line 432 character 81: Use '!==' to compare with ''.
for(var index = module.indexOf("."); index > -1 && module.substr(0, index) != ""; index = module.indexOf(".", index + 1 ))
Lint at line 453 character 48: Line breaking error ')'.
if(originalModule != module)
Lint at line 454 character 25: Expected '{' and instead saw 'module'.
module = Archetype._getModuleUrlFromConfiguration(module);
Lint at line 459 character 48: Line breaking error ')'.
if(originalModule != module)
Lint at line 460 character 25: Expected '{' and instead saw 'module'.
module = Archetype._getModuleUrlFromConfiguration(module);
Lint at line 484 character 43: Use '===' to compare with '0'.
if(module.indexOf(Archetype.path) == 0) {
Lint at line 597 character 20: 'i' is already defined.
for (var i = 0; i < valuesList.length; i++) {
Lint at line 601 character 11: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
for (var property in values) {
Lint at line 764 character 67: Line breaking error ')'.
var layers = Archetype._resolve(module, options.evaluation)
Lint at line 764 character 68: Missing semicolon.
var layers = Archetype._resolve(module, options.evaluation)
Lint at line 765 character 46: Line breaking error ')'.
if(Archetype.debugLoadLayers === true)
Lint at line 766 character 13: Expected '{' and instead saw 'console'.
console.debug("layers resolved", layers);
Lint at line 783 character 46: Line breaking error ')'.
if(Archetype.debugLoadLayers === true)
Lint at line 784 character 13: Expected '{' and instead saw 'console'.
console.debug("layer require ", modules);
Lint at line 802 character 17: 'new' should not be used as a statement.
new Archetype.LoadJoiner("Component", realPaths, function() {
Lint at line 802 character 17: Stopping, unable to continue. (75% scanned).
Lint at line 16 character 34: ['observe'] is better written in dot notation.
component._private._definition["observe"] = function(element, type, callback) {
Lint at line 22 character 78: Expected '{' and instead saw 'e'.
$$("#loglines tr").each(function(e) {if(e.innerHTML.match("testTeardown")) e.remove();});
Lint at line 23 character 41: Missing semicolon.
$$('#loglines').each(function(e){e.id=""});
Lint at line 27 character 59: Line breaking error ')'.
if(!$exist(UnitTestPage.tests[UnitTestPage.currentTest]))
Lint at line 28 character 4: Expected '{' and instead saw 'return'.
return;
Lint at line 30 character 7: 'new' should not be used as a statement.
new Insertion.Bottom(document.body, 'Tests for ' + UnitTestPage.tests[UnitTestPage.currentTest] + '
');
Lint at line 30 character 7: Stopping, unable to continue. (72% scanned).
Lint at line 45 character 87: Missing semicolon.
fireHelloWorld: function(){Logger.warn("Cette fonction ne devrait pas etre appelee!")}
Lint at line 49 character 2: Missing semicolon. }
Lint at line 14 character 2: Missing semicolon. }
No problems found
Lint at line 15 character 21: Expected '{' and instead saw 'new'.
if(document.body) new Insertion.Bottom(document.body, "" + content + "
");
Lint at line 15 character 25: 'new' should not be used as a statement.
if(document.body) new Insertion.Bottom(document.body, "" + content + "
");
Lint at line 15 character 25: Stopping, unable to continue. (42% scanned).
No problems found
No problems found
Lint at line 49 character 25: Use '!==' to compare with 'undefined'.
return ( this._tracer != undefined ) ? this._tracer : false;
Lint at line 53 character 23: Line breaking error ')'.
if ( ! this._tracer )
Lint at line 54 character 4: Expected '{' and instead saw 'this'.
this._tracer = new Event.Tracer( /*viewport*/ );
Lint at line 230 character 40: Line breaking error ')'.
if ( typeof pair[ 1 ] != "undefined" )
Lint at line 231 character 4: Expected '{' and instead saw 'li'.
li.innerHTML += '' +
Lint at line 247 character 62: Expected a 'break' statement before 'default'.
this._outputlist = this._outputlist.parentNode.parentNode;
Lint at line 250 character 41: Line breaking error ')'.
if ( pair[ 1 ] && pair[ 1 ].tagName )
Lint at line 251 character 6: Expected '{' and instead saw 'li'.
li.innerHTML = '' +
Lint at line 1 character 20: Missing semicolon.
Archetype.i18n = {}
Lint at line 13 character 2: Missing semicolon. }
Lint at line 16 character 46: Expected an identifier and instead saw 'package' (a reserved word).
component._private._definition[methodName].package = component._private._definition[methodName].name.split(".");
Lint at line 40 character 51: Line breaking error ')'.
if ( typeof this._event_source_id == 'function' )
Lint at line 41 character 4: Expected '{' and instead saw 'return'.
return this._event_source_id();
Lint at line 43 character 4: Expected '{' and instead saw 'return'.
return this._event_source_id;
Lint at line 51 character 33: Line breaking error ')'.
if ( ! this._ls_event_targets )
Lint at line 52 character 4: Expected '{' and instead saw 'this'.
this._ls_event_targets = new Array();
Lint at line 52 character 33: Use the array literal notation [].
this._ls_event_targets = new Array();
Lint at line 54 character 47: Line breaking error ')'.
if ( ! this._ls_event_targets[ event_name ] )
Lint at line 55 character 4: Expected '{' and instead saw 'document'.
document.body.appendChild(
Lint at line 125 character 23: Expected '{' and instead saw 'can_bubble'.
if ( ! can_bubble ) can_bubble = false;
Lint at line 126 character 23: Expected '{' and instead saw 'cancelable'.
if ( ! cancelable ) cancelable = false;
Lint at line 131 character 90: Line breaking error ')'.
if ( event_name.match( /event(?:ListenerAdded|ListenerRemoved|Dispatched|Received)/ ) )
Lint at line 132 character 5: Expected '{' and instead saw 'return'.
return;
Lint at line 134 character 13: 'data' is already defined.
var data = {
Lint at line 161 character 15: Line breaking error ')'.
if ( trace )
Lint at line 162 character 5: Expected '{' and instead saw 'trace'.
trace.unregisterPublisher( this );
Lint at line 229 character 23: Line breaking error ')'.
if ( ! onEvent_name )
Lint at line 230 character 4: Expected '{' and instead saw 'onEvent_name'.
onEvent_name = this.getEventHandlerName( event_name );
Lint at line 232 character 26: Expected '{' and instead saw 'this'.
if ( ! this._listens ) this._listens = new Array();
Lint at line 232 character 46: Use the array literal notation [].
if ( ! this._listens ) this._listens = new Array();
Lint at line 235 character 83: Line breaking error ')'.
this._listens.push( [ event_source, event_name, use_capture, onEvent_name, cb ] )
Lint at line 235 character 84: Missing semicolon.
this._listens.push( [ event_source, event_name, use_capture, onEvent_name, cb ] )
Lint at line 248 character 26: Expected '{' and instead saw 'return'.
if ( ! this._listens ) return false;
Lint at line 250 character 23: Line breaking error ')'.
if ( ! onEvent_name )
Lint at line 251 character 4: Expected '{' and instead saw 'onEvent_name'.
onEvent_name = this.getEventHandlerName( event_name );
Lint at line 255 character 36: Line breaking error ')'.
if ( ( val[ 0 ] == event_source )
Lint at line 256 character 34: Line breaking error ')'.
&& ( val[ 1 ] == event_name )
Lint at line 257 character 35: Line breaking error ')'.
&& ( val[ 2 ] == use_capture )
Lint at line 289 character 24: Expected '{' and instead saw 'can_bubble'.
if ( ! can_bubble ) can_bubble = false;
Lint at line 290 character 24: Expected '{' and instead saw 'cancelable'.
if ( ! cancelable ) cancelable = false;
Lint at line 293 character 48: Line breaking error ')'.
event = document.createEvent( 'HTMLEvents' )
Lint at line 293 character 49: Missing semicolon.
event = document.createEvent( 'HTMLEvents' )
Lint at line 298 character 49: Line breaking error ')'.
event = document.createEvent( 'MouseEvents' )
Lint at line 298 character 50: Missing semicolon.
event = document.createEvent( 'MouseEvents' )
Lint at line 312 character 20: Line breaking error ')'.
if ( fl_dispatch )
Lint at line 313 character 4: Expected '{' and instead saw 'Event'.
Event.dispatch( target, event );
Lint at line 319 character 29: Line breaking error ')'.
if ( document.createEvent )
Lint at line 320 character 4: Expected '{' and instead saw 'return'.
return target.dispatchEvent( event );
Lint at line 322 character 4: Expected '{' and instead saw 'return'.
return target.fireEvent( ( typeof( event.event_type ) != "undefined" ) ? event.event_type : 'onclick', event );
Lint at line 368 character 24: Use '===' to compare with 'null'.
if ( this._listeners == null )
Lint at line 368 character 32: Line breaking error ')'.
if ( this._listeners == null )
Lint at line 369 character 4: Expected '{' and instead saw 'this'.
this._listeners = {};
Lint at line 371 character 63: Line breaking error ')'.
if ( typeof( this._listeners[ event_type ] ) == "undefined" )
Lint at line 372 character 4: Expected '{' and instead saw 'this'.
this._listeners[ event_type ] = new Array();
Lint at line 372 character 40: Use the array literal notation [].
this._listeners[ event_type ] = new Array();
Lint at line 376 character 25: Use '===' to compare with 'null'.
if ( this._publishers == null )
Lint at line 376 character 33: Line breaking error ')'.
if ( this._publishers == null )
Lint at line 377 character 4: Expected '{' and instead saw 'this'.
this._publishers = {};
Lint at line 379 character 39: Use '===' to compare with 'undefined'.
if ( this._publishers[ event_type ] == undefined )
Lint at line 379 character 52: Line breaking error ')'.
if ( this._publishers[ event_type ] == undefined )
Lint at line 380 character 4: Expected '{' and instead saw 'this'.
this._publishers[ event_type ] = new Array();
Lint at line 380 character 4: Too many errors. (74% scanned).
Lint at line 5 character 5: 'new' should not be used as a statement.
new Test.Unit.Runner({
Lint at line 5 character 5: Stopping, unable to continue. (8% scanned).
No problems found
No problems found
Lint at line 6 character 2: Missing semicolon. }
Lint at line 49 character 87: Missing semicolon.
fireHelloWorld: function(){Logger.warn("Cette fonction ne devrait pas etre appelee!")}
No problems found
Lint at line 26 character 4: eval is evil.
eval("var " + this.keys[this.i] + " = this.object[\"" + this.keys[this.i] + "\"];");
Lint at line 31 character 4: eval is evil.
eval("var match = this.object[\"match\"];"); //In case of "match" are used for a variable
Lint at line 33 character 8: eval is evil.
for(eval("var " + this.match[1]); eval(this.match[3]); eval(this.match[4])) {
Lint at line 33 character 38: eval is evil.
for(eval("var " + this.match[1]); eval(this.match[3]); eval(this.match[4])) {
Lint at line 33 character 59: eval is evil.
for(eval("var " + this.match[1]); eval(this.match[3]); eval(this.match[4])) {
Lint at line 34 character 34: eval is evil.
this.object[this.match[2]] = eval(this.match[2]);
Lint at line 35 character 60: Line breaking error ')'.
this.subTemplate = new Archetype.Template(this.match[5])
Lint at line 35 character 61: Missing semicolon.
this.subTemplate = new Archetype.Template(this.match[5])
Lint at line 43 character 4: eval is evil.
eval("var match = this.object[\"match\"];"); //In case of "match" are used for a variable
Lint at line 45 character 7: eval is evil.
if(eval(this.match[1])) {
Lint at line 46 character 60: Line breaking error ')'.
this.subTemplate = new Archetype.Template(this.match[2])
Lint at line 46 character 61: Missing semicolon.
this.subTemplate = new Archetype.Template(this.match[2])
Lint at line 54 character 4: eval is evil.
eval("var match = this.object[\"match\"];"); //In case of "match" are used for a variable
Lint at line 60 character 4: eval is evil.
eval("var match = this.object[\"match\"];"); //In case of "match" are used for a variable
Lint at line 61 character 11: eval is evil.
return eval(this.match[1]);
Lint at line 35 character 3: Missing semicolon.
}
Lint at line 44 character 31: Line breaking error ')'.
if (arguments.callee.caller)
Lint at line 45 character 5: Expected '{' and instead saw 'methodName'.
methodName = arguments.callee.caller.arguments.callee.caller.name || arguments.callee.caller.arguments.callee.caller.arguments.callee.caller.name ||"";
Lint at line 45 character 42: Expected an identifier and instead saw 'arguments' (a reserved word).
methodName = arguments.callee.caller.arguments.callee.caller.name || arguments.callee.caller.arguments.callee.caller.arguments.callee.caller.name ||"";
Lint at line 45 character 98: Expected an identifier and instead saw 'arguments' (a reserved word).
methodName = arguments.callee.caller.arguments.callee.caller.name || arguments.callee.caller.arguments.callee.caller.arguments.callee.caller.name ||"";
Lint at line 45 character 122: Expected an identifier and instead saw 'arguments' (a reserved word).
methodName = arguments.callee.caller.arguments.callee.caller.name || arguments.callee.caller.arguments.callee.caller.arguments.callee.caller.name ||"";
Lint at line 47 character 19: Use '!==' to compare with ''.
if (methodName != "")
Lint at line 47 character 24: Line breaking error ')'.
if (methodName != "")
Lint at line 48 character 5: Expected '{' and instead saw 'methodName'.
methodName = "["+methodName+"]";
Lint at line 49 character 42: Expected an identifier and instead saw 'arguments' (a reserved word).
var args = $A(arguments.callee.caller.arguments);
Lint at line 70 character 3: Missing semicolon.
}
Lint at line 1 character 20: Missing semicolon.
Archetype.i18n = {}