xmpp4js - JsLint Javascript Verifier report

adapter\Default.js

position error code
16:1 Missing semicolon. }
24:1 Missing semicolon. }
361:58 Use '!==' to compare with 'undefined'. xhr.open(request.method, request.url, request.async != undefined ? request.async : true);
362:6 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var header in request.headers ) {
391:24 'e' is already defined. } catch(e) {
406:18 Use '!==' to compare with 'null'. if (match != null && match.length > 1 && match[1] != '') {
406:58 Use '!==' to compare with ''. if (match != null && match.length > 1 && match[1] != '') {
430:61 Line breaking error ')'. var fnArgs = Array.prototype.slice.call(arguments)
430:62 Missing semicolon. var fnArgs = Array.prototype.slice.call(arguments)
432:9 Missing semicolon. }
434:1 Missing semicolon. }
441:1 Missing semicolon. }
449:1 Missing semicolon. }
501:1 Missing semicolon. }

chat\Chat.js

position error code
62:1 Missing semicolon. }
105:16 'msg' is already defined. var msg = packetHelper.createMessage( this.participant, "chat", msg );

chat\ChatManager.js

position error code
48:1 Missing semicolon. }
85:36 Use '!==' to compare with ''. if( messagePacket.getType() != "" && messagePacket.getType() != "normal" && messagePacket.getType() != "chat" ) {
192:17 Use '===' to compare with 'null'. if( chat == null ) {

chat\MessageThreadFilter.js

position error code
15:1 Missing semicolon. }
22:51 Line breaking error ')'. return this.packetClassFilter.accept(stanza)
25:1 Missing semicolon. }

DomBuilder.js

position error code
25:30 Missing semicolon. var DomBuilder = function() {}
67:23 ['xmlns'] is better written in dot notation. if( attributes["xmlns"] !== undefined ) {
68:61 ['xmlns'] is better written in dot notation. elem = parentDoc.createElementNS( attributes["xmlns"], elementName );
84:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in attributes ) {
97:1 Missing semicolon. }

Events.js

position error code
45:2 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in this.map) {
58:1 Missing semicolon. }
81:1 Missing semicolon. }
93:1 Missing semicolon. }
101:1 Missing semicolon. }
109:1 Missing semicolon. }
121:1 Missing semicolon. }
132:1 Missing semicolon. }
161:31 ['single'] is better written in dot notation. if( options && options["single"] == true ) {
161:41 Use '===' to compare with 'true'. if( options && options["single"] == true ) {
169:13 Missing semicolon. }
179:12 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var e in event ) {
187:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var id in delegateMap ) {
225:1 Missing semicolon. }

ext\DataForm.js

position error code
47:1 Missing semicolon. }
66:1 Missing semicolon. }
81:1 Missing semicolon. }
92:1 Missing semicolon. }
100:11 Use '===' to compare with 'null'. if( field == null ) { return; }
102:11 Use '===' to compare with 'null'. if( value == null ) { value = []; }
116:12 'i' is already defined. for( var i = 0; i < value.length; i++ ) {
117:16 'valueElem' is already defined. var valueElem = field.ownerDocument.createElement("value");
122:1 Missing semicolon. }
130:11 Use '===' to compare with 'null'. if( field == null ) { return; }
141:1 Missing semicolon. }
148:11 Use '===' to compare with 'null'. if( field == null ) { return; }
151:1 Missing semicolon. }
159:11 Use '===' to compare with 'null'. if( field == null ) { return; }
162:1 Missing semicolon. }
171:11 Use '===' to compare with 'null'. if( field == null ) { return; }
175:1 Missing semicolon. }
182:11 Use '===' to compare with 'null'. if( field == null ) { return; }
186:1 Missing semicolon. }
193:11 Use '===' to compare with 'null'. if( field == null ) { return; }
205:1 Missing semicolon. }
215:1 Missing semicolon. }
225:1 Missing semicolon. }
232:1 Missing semicolon. }
260:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var elemName in this.mapping ) {
311:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var elemName in this.mapping ) {
321:1 Missing semicolon. }
347:5 Unnecessary semicolon. };
453:16 'xhreq' is already defined. var xhreq = new XMLHttpRequest();
457:34 Use '!==' to compare with 'null'. if( xhreq.responseXML != null ) {
478:16 Use '===' to compare with 'null'. if( doc == null ) {
498:16 Use '===' to compare with 'null'. if(formElem==null) { return; }
504:25 Use '!==' to compare with 'null'. if( cancelButton != null ) {
508:25 Use '!==' to compare with 'null'. if( submitButton != null ) {
546:17 'elem' is already defined. var elem = document.getElementById( this.formId + "-" + fieldName );
560:17 'elem' is already defined. var elem = document.getElementById( this.formId + "-" + fieldName );
561:16 Use '===' to compare with 'null'. if(elem == null ) { continue; }
576:1 Missing semicolon. }

ext\DataStorage.js

position error code
44:1 Missing semicolon. }
63:1 Missing semicolon. }
68:1 Missing semicolon. }
79:1 Missing semicolon. }

ext\ServiceDisco.js

position error code
119:40 Use '!==' to compare with 'undefined'. return this.features[ feature ] != undefined;
142:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in this.features ) {
204:26 Use '===' to compare with 'null'. if( responseQuery == null ) {
233:26 Line breaking error ']'. var identities = []
233:27 Missing semicolon. var identities = []
237:26 Use '===' to compare with 'null'. if( responseQuery == null ) {
326:1 Missing semicolon. }
385:1 Missing semicolon. }

Jid.js

position error code
37:31 Use '!==' to compare with 'null'. if (jid !== undefined && jid != null) {
56:1 Missing semicolon. }
60:12 'new' should not be used as a statement. new Xmpp4Js.Jid(jid);
60:12 Stopping, unable to continue. (26% scanned). org.mozilla.javascript.UniqueTag@1649a55: NOT_FOUND
Error generating report for Jid.js

KeySequence.js

position error code
54:20 Use '===' to compare with '0'. return (this._idx == 0);
105:1 Missing semicolon. }

md5sasl\Md5Sasl.js

position error code
106:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in fields ) {

md5sasl\utf8.js

position error code
22:12 Use the array literal notation []. var d=new Array; var test=String.fromCharCode(237);
22:17 Missing '()' invoking a constructor. var d=new Array; var test=String.fromCharCode(237);
23:28 Line breaking error ')'. if (test.charCodeAt(0) < 0)
24:4 Expected '{' and instead saw 'for'. for(var n=0; n
27:15 Line breaking error ')'. if (c>0)
28:10 Expected '{' and instead saw 'd'. d[d.length]= c;
34:4 Expected '{' and instead saw 'for'. for(var n=0; n
34:13 'n' is already defined. for(var n=0; n
36:13 'c' is already defined. var c=t.charCodeAt(n);
38:17 Line breaking error ')'. if (c<128)
39:10 Expected '{' and instead saw 'd'. d[d.length]= c;
59:12 Use the array literal notation []. var r=new Array; var i=0;
59:17 Missing '()' invoking a constructor. var r=new Array; var i=0;
77:12 Use the array literal notation []. b64 = new Array();f64 =new Array();
77:29 Use the array literal notation []. b64 = new Array();f64 =new Array();
88:12 Use the array literal notation []. var r=new Array; var i=0; var dl=d.length;
88:17 Missing '()' invoking a constructor. var r=new Array; var i=0; var dl=d.length;
92:17 Line breaking error ')'. if ((dl%3) == 2)
93:4 Expected '{' and instead saw 'd'. d[d.length] = 0;
101:20 Line breaking error ')'. if ((i%57)==54)
102:8 Expected '{' and instead saw 'r'. r[r.length] = "\n";
106:17 Line breaking error ')'. if ((dl%3) == 1)
107:4 Expected '{' and instead saw 'r'. r[r.length-1] = r[r.length-2] = "=";
108:17 Line breaking error ')'. if ((dl%3) == 2)
109:4 Expected '{' and instead saw 'r'. r[r.length-1] = "=";
119:12 Use the array literal notation []. var d=new Array; var i=0;
119:17 Missing '()' invoking a constructor. var d=new Array; var i=0;
121:47 Unescaped ')'. t=t.replace(/\n|\r/g,""); t=t.replace(/=/g,"");
121:42 Unclosed regular expression. t=t.replace(/\n|\r/g,""); t=t.replace(/=/g,"");
121:42 Stopping, unable to continue. (76% scanned). org.mozilla.javascript.UniqueTag@1649a55: NOT_FOUND
Error generating report for md5sasl\utf8.js

muc\ext\Muc.js

position error code
7:1 Missing semicolon. }
19:1 Missing semicolon. }

muc\ext\MucUser.js

position error code
8:1 Missing semicolon. }
16:1 Missing semicolon. }

muc\MucError.js

position error code
7:20 Missing semicolon. this.code = code
8:1 Missing semicolon. }
17:1 Missing semicolon. }

muc\MucManager.js

position error code
21:1 Missing semicolon. }
24:23 Use '===' to compare with 'undefined'. if(con._mucManager == undefined) { con._mucManager = {}; }
26:30 Use '===' to compare with 'null'. if( con._mucManager[node] == null ) {
31:1 Missing semicolon. }
39:1 Missing semicolon. }
73:1 Missing semicolon. }

muc\MucParticipant.js

position error code
12:1 Missing semicolon. }
22:1 Missing semicolon. }
46:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in status ) {
57:1 Missing semicolon. }

muc\MucPresenceFilter.js

position error code
12:15 Use '!==' to compare with 'undefined'. if(fromJid != undefined) {
15:1 Missing semicolon. }
26:25 Use '!==' to compare with 'undefined'. if( this.fromJid != undefined && packet.getFrom().indexOf(this.fromJid) == -1 ) {
44:1 Missing semicolon. }

muc\MucRoom.js

position error code
11:1 Missing semicolon. }
24:1 Missing semicolon. }

muc\StatefulMucRoom.js

position error code
41:1 Missing semicolon. }
89:61 Use '!==' to compare with 'undefined'. if( packet.getExtension(Xmpp4Js.Ext.Error.XMLNS) != undefined ) {
136:1 Missing semicolon. }

packet\AuthPlainText.js

position error code
23:1 Missing semicolon. }
43:1 Missing semicolon. }

packet\Base.js

position error code
21:1 Missing semicolon. }
32:1 Missing semicolon. }
112:18 Line breaking error 'Packet ['. var string = "Packet ["
113:8 Line breaking error 'node (JSON)='. + "node (JSON)="
114:33 Line breaking error ')'. + ", type=" + this.getType()
115:33 Line breaking error ')'. + ", from=" + this.getFrom()
116:29 Line breaking error ')'. + ", to=" + this.getTo()
117:8 Line breaking error ', toJid='. + ", toJid=" //+ this.getToJid().toString()
162:20 Use '===' to compare with 'null'. if( content == null || content == "" ) {
162:39 Use '===' to compare with ''. if( content == null || content == "" ) {
200:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in this.extensions ) {

packet\IQ.js

position error code
25:1 Missing semicolon. }
43:1 Missing semicolon. }

packet\Message.js

position error code
20:13 Use '!==' to compare with 'null'. if( body != null ) { this.setBody( body ); }
21:16 Use '!==' to compare with 'null'. if( subject != null ) { this.setSubject( subject ); }
22:1 Missing semicolon. }
72:27 Use '!==' to compare with 'null'. return messageText != null && messageText != undefined;
72:50 Use '!==' to compare with 'undefined'. return messageText != null && messageText != undefined;
74:1 Missing semicolon. }

packet\PacketExtension.js

position error code
12:1 Missing semicolon. }
67:1 Missing semicolon. }
74:1 Missing semicolon. }
90:22 A constructor name should start with an uppercase letter. var ext = new clazz(stanza);
107:22 A constructor name should start with an uppercase letter. var ext = new clazz(stanza);
147:1 Missing semicolon. }
208:1 Missing semicolon. }
265:1 Missing semicolon. }
279:1 Missing semicolon. }

packet\PacketListenerManager.js

position error code
5:1 Missing semicolon. }
76:49 Line breaking error 'http://jabber.org/protocol/httpbind'. if( node.namespaceURI == "http://jabber.org/protocol/httpbind"
89:0 Unnecessary semicolon. ;;; Xmpp4Js.PacketListenerManager.logger.error( "Error running packet listener");
89:1 Unnecessary semicolon. ;;; Xmpp4Js.PacketListenerManager.logger.error( "Error running packet listener");
89:2 Unnecessary semicolon. ;;; Xmpp4Js.PacketListenerManager.logger.error( "Error running packet listener");
95:1 Missing semicolon. }

packet\Presence.js

position error code
14:68 Line breaking error ')'. Xmpp4Js.Packet.Presence.superclass.constructor.call( this, node )
14:69 Missing semicolon. Xmpp4Js.Packet.Presence.superclass.constructor.call( this, node )
19:1 Missing semicolon. }
68:17 Use '!==' to compare with 'null'. if( show != null ) { this.setShow(show); }
69:19 Use '!==' to compare with 'null'. if( status != null ) { this.setStatus(status); }
70:21 Use '!==' to compare with 'null'. if( priority != null ) { this.setPriority(priority); }
72:1 Missing semicolon. }

packet\Registration.js

position error code
13:1 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in fields ) {
22:1 Missing semicolon. }
27:1 Missing semicolon. }

packetfilter\Errors.js

position error code
9:1 Missing semicolon. }
78:1 Missing semicolon. }
82:189 Use '!==' to compare with 'undefined'. return bodyElement.getAttribute( "type" ).toString() == "terminate" && Xmpp4Js.PacketFilter.TerminalErrorPacketFilter.conditions[ bodyElement.getAttribute("condition").toString() ] != undefined;
84:1 Missing semicolon. }
106:1 Missing semicolon. }
112:1 Missing semicolon. }

packetfilter\PacketExtensionFilter.js

position error code
10:1 Missing semicolon. }
24:1 Missing semicolon. }

PacketFilter.js

position error code
22:49 Missing semicolon. Xmpp4Js.PacketFilter.PacketFilter = function() {}
28:1 Missing semicolon. }
38:52 Missing semicolon. Xmpp4Js.PacketFilter.RawPacketFilter = function() {}
44:1 Missing semicolon. }
61:1 Missing semicolon. }
78:1 Missing semicolon. }
88:1 Missing semicolon. }
100:1 Missing semicolon. }
112:1 Missing semicolon. }
123:1 Missing semicolon. }
145:1 Missing semicolon. }
167:1 Missing semicolon. }
188:1 Missing semicolon. }
208:1 Missing semicolon. }
230:1 Missing semicolon. }
234:59 Use '!==' to compare with 'null'. return this.iqFilter.accept(packet) && packet.getQuery() != null && packet.getQuery().namespaceURI == this.namespace;

PacketHelper.js

position error code
25:9 Use '===' to compare with 'null'. if( doc == null ) {
31:1 Missing semicolon. }
35:1 Missing semicolon. }
42:1 Missing semicolon. }
46:1 Missing semicolon. }
50:1 Missing semicolon. }
54:1 Missing semicolon. }
58:1 Missing semicolon. }

PluginManager.js

position error code
52:15 eval is evil. var plugin = eval("new " + name + "();");
87:26 Use '!==' to compare with 'null'. return this.get( name ) != null;
92:1 Missing semicolon. }
112:1 Missing semicolon. }

roster\PresenceManager.js

position error code
21:1 Missing semicolon. }
41:24 Use '===' to compare with 'undefined'. if(this.map[jid]==undefined) { this.map[jid] = {}; }
87:26 Use '===' to compare with 'undefined'. if( this.map[jid] == undefined ) { return; }
91:12 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in this.map[jid]) {
97:40 Use '===' to compare with 'undefined'. if( this.map[jid][resource] == undefined ) { return; }
117:1 Missing semicolon. }
128:1 Missing semicolon. }
170:29 Use '===' to compare with 'null'. if( bestPresence == null || weight > bestWeight ) {
155:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for(var k in presenceList) {
174:9 Unnecessary semicolon. };
178:1 Missing semicolon. }

roster\Roster.js

position error code
35:1 Missing semicolon. }

roster\RosterEntry.js

position error code
13:1 Missing semicolon. }
30:35 Use '===' to compare with '0'. if( this.groups.length == 0 ) {
39:30 Use '===' to compare with 'undefined'. if( group == undefined ) {
43:17 Unnecessary semicolon. };
48:1 Missing semicolon. }

roster\RosterGroup.js

position error code
9:5 Missing semicolon. }
15:2 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for(var k in this.roster.map) {
25:3 Unnecessary semicolon. };
37:13 Unnecessary semicolon. };
42:1 Missing semicolon. }

roster\RosterItemManager.js

position error code
30:1 Missing semicolon. }
77:42 Use '===' to compare with 'undefined'. if( groupNames[groupName] == undefined ) {
81:13 Unnecessary semicolon. };
73:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for( var k in this.map) {
83:9 Unnecessary semicolon. };
122:25 Use '===' to compare with 'undefined'. if( currentEntry == undefined ) {
215:1 Missing semicolon. }

roster\RosterPacket.js

position error code
8:1 Missing semicolon. }
39:1 Missing semicolon. }
51:21 Use '!==' to compare with 'undefined'. return queryNode != undefined && queryNode.namespaceURI == "jabber:iq:roster";

roster\UnfiledEntriesRosterGroup.js

position error code
8:1 Missing semicolon. }
18:45 Use '===' to compare with '0'. if( !groups || groups.length == 0 ) {
14:8 The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. for(var k in this.roster.map) {
25:1 Missing semicolon. }

roster\VirtualRosterGroup.js

position error code
12:1 Missing semicolon. }
18:1 Missing semicolon. }

StanzaProvider.js

position error code
26:1 Missing semicolon. }
55:38 Line breaking error ')'. if( provider.qualifier( stanzaNode )
78:3 Line breaking error ')'. 0
85:3 Line breaking error ')'. 1
91:3 Line breaking error ')'. 1
97:3 Line breaking error ')'. 1
100:1 Missing semicolon. }
105:1 Missing semicolon. }
109:1 Missing semicolon. }
113:1 Missing semicolon. }
117:1 Missing semicolon. }
121:1 Missing semicolon. }
128:29 Missing semicolon. this.stanzaNode = stanzaNode
135:1 Missing semicolon. }

transport\Base.js

position error code
218:1 Missing semicolon. }
279:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Get beginSession response. Session ID="+this.sid+", hold="+this.hold+", wait="+this.wait+", polling="+this.polling );
279:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Get beginSession response. Session ID="+this.sid+", hold="+this.hold+", wait="+this.wait+", polling="+this.polling );
279:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Get beginSession response. Session ID="+this.sid+", hold="+this.hold+", wait="+this.wait+", polling="+this.polling );
291:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Starting up transport" );
291:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Starting up transport" );
291:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Starting up transport" );
302:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "End Session. Session ID="+this.sid );
302:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "End Session. Session ID="+this.sid );
302:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "End Session. Session ID="+this.sid );
320:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Transport Shutdown (stopping tasks)" );
320:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Transport Shutdown (stopping tasks)" );
320:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Transport Shutdown (stopping tasks)" );
335:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Sending packet." );
335:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Sending packet." );
335:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Sending packet." );
358:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.error( "write: Not Implemented" );
358:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.error( "write: Not Implemented" );
358:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.error( "write: Not Implemented" );
368:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.error( "onWriteResponse: Not Implemented" );
368:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.error( "onWriteResponse: Not Implemented" );
368:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.error( "onWriteResponse: Not Implemented" );
399:34 Use '===' to compare with '0'. if( this.openRequestCount == 0 && this.queue.length == 0 ) {
399:60 Use '===' to compare with '0'. if( this.openRequestCount == 0 && this.queue.length == 0 ) {
400:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Send Poll." );
400:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Send Poll." );
400:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Send Poll." );
415:30 Use '===' to compare with '0'. if( this.queue.length == 0 || this.openRequestCount > this.maxRequests ) {
419:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "sendQueue with "+this.queue.length+" waiting stanzas." );
419:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "sendQueue with "+this.queue.length+" waiting stanzas." );
419:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "sendQueue with "+this.queue.length+" waiting stanzas." );
478:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Resetting key sequence." );
478:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Resetting key sequence." );
478:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.debug( "Resetting key sequence." );
511:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Pausing session." );
511:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Pausing session." );
511:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Pausing session." );
582:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Resume session. Session ID="+pauseStruct.sid+", Request ID="+pauseStruct.rid );
582:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Resume session. Session ID="+pauseStruct.sid+", Request ID="+pauseStruct.rid );
582:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Base.logger.info( "Resume session. Session ID="+pauseStruct.sid+", Request ID="+pauseStruct.rid );
598:22 Use '===' to compare with 'null'. if( errorNode == null && (packetNode.getAttribute("type").toString() == "terminate" ||
620:28 Use '!==' to compare with 'null'. } else if(errorNode != null) {
635:66 'errorCode' used out of scope. this.fireEvent( "streamerror", packetNode, errorNode, errorCode, text );
635:77 'text' used out of scope. this.fireEvent( "streamerror", packetNode, errorNode, errorCode, text );
639:1 Missing semicolon. }

transport\BOSH.js

position error code
48:1 Missing semicolon. }
70:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.debug( "Writing packet." );
70:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.debug( "Writing packet." );
70:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.debug( "Writing packet." );
101:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.debug( "Got write response." );
101:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.debug( "Got write response." );
101:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.debug( "Got write response." );
133:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.warn( "Deprecated HTTP code error" );
133:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.warn( "Deprecated HTTP code error" );
133:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.BOSH.logger.warn( "Deprecated HTTP code error" );
166:18 'e' is already defined. } catch(e) {
171:1 Missing semicolon. }

transport\Script.js

position error code
42:19 Missing radix parameter. var rand = parseInt(Math.random() * 10000); // 4 digits of random
61:1 Missing semicolon. }
81:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Writing packet. rid="+packetNode.getAttribute("rid") );
81:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Writing packet. rid="+packetNode.getAttribute("rid") );
81:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Writing packet. rid="+packetNode.getAttribute("rid") );
117:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Script error while pausing. Ignoring error." );
117:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Script error while pausing. Ignoring error." );
117:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Script error while pausing. Ignoring error." );
120:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.error( "Deprecated HTTP code script error." );
120:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.error( "Deprecated HTTP code script error." );
120:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.error( "Deprecated HTTP code script error." );
148:0 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Got write response." );
148:1 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Got write response." );
148:2 Unnecessary semicolon. ;;; Xmpp4Js.Transport.Script.logger.debug( "Got write response." );
163:1 Missing semicolon. }

workflow\Login.js

position error code
40:1 Missing semicolon. }
49:49 Unnecessary semicolon. if( !resource ) { resource = 'xmpp4js'; };

workflow\Registration.js

position error code
46:1 Missing semicolon. }

XmppConnection.js

position error code
88:27 Use '!==' to compare with 'undefined'. if( config.pauseStruct != undefined ) {
92:1 Missing semicolon. }
126:29 A constructor name should start with an uppercase letter. this.transport = new transportClass(transportConfig);
136:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Connecting to "+domain+", server="+server+", port="+port );
136:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Connecting to "+domain+", server="+server+", port="+port );
136:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Connecting to "+domain+", server="+server+", port="+port );
151:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Closing connection to "+this.domain );
151:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Closing connection to "+this.domain );
151:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Closing connection to "+this.domain );
168:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Sending packet. Callback? "+(callback!=null) );
168:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Sending packet. Callback? "+(callback!=null) );
168:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Sending packet. Callback? "+(callback!=null) );
168:79 Use '!==' to compare with 'null'. ;;; Xmpp4Js.Connection.logger.debug( "Sending packet. Callback? "+(callback!=null) );
224:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Received a packet" );
224:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Received a packet" );
224:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Received a packet" );
233:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.error( "Terminal error. title="+title+", message="+message );
233:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.error( "Terminal error. title="+title+", message="+message );
233:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.error( "Terminal error. title="+title+", message="+message );
244:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.error("Stream error. code="+errorCode+", text="+text );
244:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.error("Stream error. code="+errorCode+", text="+text );
244:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.error("Stream error. code="+errorCode+", text="+text );
255:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.warn("Recoverable error.");
255:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.warn("Recoverable error.");
255:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.warn("Recoverable error.");
264:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Begin session. Session ID="+this.transport.sid );
264:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Begin session. Session ID="+this.transport.sid );
264:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Begin session. Session ID="+this.transport.sid );
274:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "End session. Session ID="+this.transport.sid );
274:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "End session. Session ID="+this.transport.sid );
274:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "End session. Session ID="+this.transport.sid );
305:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Connection resumed. Session ID="+this.transport.sid );
305:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Connection resumed. Session ID="+this.transport.sid );
305:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Connection resumed. Session ID="+this.transport.sid );
319:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Shutting down connection" );
319:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Shutting down connection" );
319:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Shutting down connection" );
330:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Starting up connection" );
330:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Starting up connection" );
330:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.info( "Starting up connection" );
361:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Requesting session pause. time="+time+" seconds, Session ID="+this.transport.sid );
361:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Requesting session pause. time="+time+" seconds, Session ID="+this.transport.sid );
361:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Requesting session pause. time="+time+" seconds, Session ID="+this.transport.sid );
376:0 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Resuming session. Session ID="+this.transport.sid );
376:1 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Resuming session. Session ID="+this.transport.sid );
376:2 Unnecessary semicolon. ;;; Xmpp4Js.Connection.logger.debug( "Resuming session. Session ID="+this.transport.sid );
382:1 Missing semicolon. }

About xmpp4js

xmpp4js is an xmpp connection library for Javascript. It is written with a heavy emphasis on resuability and extensibility, and is naturally heavilly tested.

About Xmpp4Js

Developer Docs

Project Documentation

Powered By