igor-alexandrov/wiselinks

View on GitHub

Showing 46 of 73 total issues

File wiselinks-1.2.2.js has 1978 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Wiselinks-1.2.2
 * @copyright 2012-2014 Igor Alexandrov, Alexey Solilin, Julia Egorova, Alexandr Borisov
 * @preserve https://github.com/igor-alexandrov/wiselinks
 */
Severity: Major
Found in build/wiselinks-1.2.2.js - About 5 days to fix

    Function initCore has 855 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        History.initCore = function(options){
            // Initialise
            if ( typeof History.initCore.initialized !== 'undefined' ) {
                // Already Loaded
                return false;
    Severity: Major
    Found in build/wiselinks-1.2.2.js - About 4 days to fix

      Function initCore has 855 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          History.initCore = function(options){
              // Initialise
              if ( typeof History.initCore.initialized !== 'undefined' ) {
                  // Already Loaded
                  return false;
      Severity: Major
      Found in lib/assets/javascripts/lib/native.history.js - About 4 days to fix

        File native.history.js has 1413 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
            json2.js
            2012-10-08
        
            Public Domain.
        Severity: Major
        Found in lib/assets/javascripts/lib/native.history.js - About 3 days to fix

          Function initHtml4 has 261 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              History.initHtml4 = function(){
                  // Initialise
                  if ( typeof History.initHtml4.initialized !== 'undefined' ) {
                      // Already Loaded
                      return false;
          Severity: Major
          Found in build/wiselinks-1.2.2.js - About 1 day to fix

            Function initHtml4 has 261 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                History.initHtml4 = function(){
                    // Initialise
                    if ( typeof History.initHtml4.initialized !== 'undefined' ) {
                        // Already Loaded
                        return false;
            Severity: Major
            Found in lib/assets/javascripts/lib/native.history.js - About 1 day to fix

              Function str has 70 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function str(key, holder) {
              
              // Produce a string from holder[key].
              
                      var i,          // The loop counter.
              Severity: Major
              Found in lib/assets/javascripts/lib/native.history.js - About 2 hrs to fix

                Function str has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function str(key, holder) {
                
                // Produce a string from holder[key].
                
                        var i,          // The loop counter.
                Severity: Major
                Found in build/wiselinks-1.2.2.js - About 2 hrs to fix

                  Function hashChangeInit has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              History.hashChangeInit = function(){
                                  // Define our Checker Function
                                  History.checkerFunction = null;
                  
                                  // Define some variables that will help in our checker function
                  Severity: Major
                  Found in build/wiselinks-1.2.2.js - About 2 hrs to fix

                    Function hashChangeInit has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                History.hashChangeInit = function(){
                                    // Define our Checker Function
                                    History.checkerFunction = null;
                    
                                    // Define some variables that will help in our checker function
                    Severity: Major
                    Found in lib/assets/javascripts/lib/native.history.js - About 2 hrs to fix

                      Function onUnload has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  History.onUnload = function(){
                                      // Prepare
                                      var    currentStore, item, currentStoreString;
                      
                                      // Fetch
                      Severity: Minor
                      Found in lib/assets/javascripts/lib/native.history.js - About 1 hr to fix

                        Function onUnload has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    History.onUnload = function(){
                                        // Prepare
                                        var    currentStore, item, currentStoreString;
                        
                                        // Fetch
                        Severity: Minor
                        Found in build/wiselinks-1.2.2.js - About 1 hr to fix

                          Function onPopState has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      History.onPopState = function(event,extra){
                                          // Prepare
                                          var stateId = false, newState = false, currentHash, currentState;
                          
                                          // Reset the double check
                          Severity: Minor
                          Found in build/wiselinks-1.2.2.js - About 1 hr to fix

                            Function log has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    History.log = function(){
                                        // Prepare
                                        var
                                            consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'),
                                            textarea = document.getElementById('log'),
                            Severity: Minor
                            Found in lib/assets/javascripts/lib/native.history.js - About 1 hr to fix

                              Function onPopState has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          History.onPopState = function(event,extra){
                                              // Prepare
                                              var stateId = false, newState = false, currentHash, currentState;
                              
                                              // Reset the double check
                              Severity: Minor
                              Found in lib/assets/javascripts/lib/native.history.js - About 1 hr to fix

                                Function log has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        History.log = function(){
                                            // Prepare
                                            var
                                                consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'),
                                                textarea = document.getElementById('log'),
                                Severity: Minor
                                Found in build/wiselinks-1.2.2.js - About 1 hr to fix

                                  Function Page has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function Page($target, options) {
                                        var self;
                                        this.$target = $target;
                                        this.options = options;
                                        self = this;
                                  Severity: Minor
                                  Found in build/wiselinks-1.2.2.js - About 1 hr to fix

                                    Function pushState has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                History.pushState = function(data,title,url,queue){
                                                    //History.debug('History.pushState: called', arguments);
                                    
                                                    // We assume that the URL passed in is URI-encoded, but this makes
                                                    // sure that it's fully URI encoded; any '%'s that are encoded are
                                    Severity: Minor
                                    Found in lib/assets/javascripts/lib/native.history.js - About 1 hr to fix

                                      Function pushState has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                  History.pushState = function(data,title,url,queue){
                                                      //History.debug('History.pushState: called', arguments);
                                      
                                                      // We assume that the URL passed in is URI-encoded, but this makes
                                                      // sure that it's fully URI encoded; any '%'s that are encoded are
                                      Severity: Minor
                                      Found in build/wiselinks-1.2.2.js - About 1 hr to fix

                                        Function parse has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                JSON.parse = function (text, reviver) {
                                        
                                        // The parse method takes a text and an optional reviver function, and returns
                                        // a JavaScript value if the text is a valid JSON text.
                                        
                                        
                                        Severity: Minor
                                        Found in build/wiselinks-1.2.2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language