50+ JSLint Problems
-
Hello when I open the js file in my text editor (brackets) I get a ton of js problems
”
1 Expected ‘jQuery’ at column 1, not column 5. jQuery(document).ready(function(){
1 ‘jQuery’ was used before it was defined. jQuery(document).ready(function(){
1 Expected exactly one space between ‘function’ and ‘(‘. jQuery(document).ready(function(){
1 Expected exactly one space between ‘)’ and ‘{‘. jQuery(document).ready(function(){
1 Missing space between ‘)’ and ‘{‘. jQuery(document).ready(function(){
2 Missing ‘use strict’ statement. jQuery(‘#Clogin’).submit(function(e){
2 Expected ‘jQuery’ at column 5, not column 9. jQuery(‘#Clogin’).submit(function(e){
2 Expected exactly one space between ‘function’ and ‘(‘. jQuery(‘#Clogin’).submit(function(e){
2 Expected exactly one space between ‘)’ and ‘{‘. jQuery(‘#Clogin’).submit(function(e){
2 Missing space between ‘)’ and ‘{‘. jQuery(‘#Clogin’).submit(function(e){
3 Expected ‘jQuery’ at column 9, not column 13. jQuery(‘#subimg’).hide();
4 Expected ‘jQuery’ at column 9, not column 13. jQuery(‘#loader’).addClass(‘loader’);
5 Expected ‘jQuery’ at column 9, not column 13. jQuery(‘#CLMsg’).html(”);
6 Expected ‘jQuery’ at column 9, not column 13. jQuery(‘#CLMsg’).removeClass();
7 Expected ‘jQuery’ at column 9, not column 13. jQuery(‘#CLMsg’).hide();
8 Expected ‘var’ at column 9, not column 13. var redUrl = jQuery(‘#CRediUrl’).val();
9 Expected ‘var’ at column 9, not column 13. var user = jQuery(‘#Cusername’).val();
9 Combine this with the previous ‘var’ statement. var user = jQuery(‘#Cusername’).val();
10 Expected ‘var’ at column 9, not column 13. var pass = jQuery(‘#Cpassword’).val();
10 Combine this with the previous ‘var’ statement. var pass = jQuery(‘#Cpassword’).val();
11 Expected ‘var’ at column 9, not column 13. var security = jQuery(‘#security’).val();
11 Combine this with the previous ‘var’ statement. var security = jQuery(‘#security’).val();
12 Expected ‘var’ at column 9, not column 13. var rem = jQuery(‘#CRemember’).is(“:checked”);
12 Combine this with the previous ‘var’ statement. var rem = jQuery(‘#CRemember’).is(“:checked”);
13 Expected ‘var’ at column 9, not column 13. var err = ”;
13 Combine this with the previous ‘var’ statement. var err = ”;
14 Expected ‘if’ at column 9, not column 13. if(user == ”)
14 Expected exactly one space between ‘if’ and ‘(‘. if(user == ”)
14 Expected ‘===’ and instead saw ‘==’. if(user == ”)
15 Expected exactly one space between ‘)’ and ‘err’. err += ‘Username field is required.<br>’;
15 Expected ‘{‘ and instead saw ‘err’. err += ‘Username field is required.<br>’;
15 Expected ‘err’ at column 9, not column 17. err += ‘Username field is required.<br>’;
16 Expected ‘if’ at column 9, not column 13. if(pass == ”)
16 Expected exactly one space between ‘if’ and ‘(‘. if(pass == ”)
16 Expected ‘===’ and instead saw ‘==’. if(pass == ”)
17 Expected exactly one space between ‘)’ and ‘err’. err += ‘Password field is required.<br>’;
17 Expected ‘{‘ and instead saw ‘err’. err += ‘Password field is required.<br>’;
17 Expected ‘err’ at column 9, not column 17. err += ‘Password field is required.<br>’;
18 Expected ‘if’ at column 9, not column 13. if(err != ”)
18 Expected exactly one space between ‘if’ and ‘(‘. if(err != ”)
18 Expected ‘!==’ and instead saw ‘!=’. if(err != ”)
19 Expected exactly one space between ‘)’ and ‘{‘. {
21 Unexpected ‘(space)’. jQuery(‘#subimg’).show();
22 Missing space between ‘,’ and ‘CError’. jQuery(‘#CLMsg’).attr(‘class’,’CError’);
23 Missing space between ‘,’ and ‘block’. jQuery(‘#CLMsg’).css(‘display’,’block’);
27 Expected exactly one space between ‘}’ and ‘else’. else
28 Expected exactly one space between ‘else’ and ‘{‘. {
30 ‘wlwa_ajax_login’ was used before it was defined. url: wlwa_ajax_login.ajaxurl,
34 Missing space between ‘:’ and ‘{‘. data:{action : ‘wlwa-ALogin’,Cusername:user,Cpassword:pass,CRemember:rem,redUrl:redUrl,security:security},
34 Missing space between ‘,’ and ‘Cusername’. data:{action : ‘wlwa-ALogin’,Cusername:user,Cpassword:pass,CRemember:rem,redUrl:redUrl,security:security},
34 Too many errors. (51% scanned). data:{action : ‘wlwa-ALogin’,Cusername:user,Cpassword:pass,CRemember:rem,redUrl:redUrl,security:security},”
- The topic ‘50+ JSLint Problems’ is closed to new replies.