fossasia/CommonsNet

View on GitHub

Showing 126 of 3,019 total issues

File jquery.2.0.0.js has 6004 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v2.0.0
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in js/jquery.2.0.0.js - About 2 wks to fix

    File bootstrap.js has 1587 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * Bootstrap v3.3.6 (http://getbootstrap.com)
     * Copyright 2011-2015 Twitter, Inc.
     * Licensed under the MIT license
     */
    Severity: Major
    Found in js/bootstrap.js - About 4 days to fix

      Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;
      Severity: Major
      Found in js/jquery.2.0.0.js - About 1 day to fix

        Function setDocument has 206 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        setDocument = Sizzle.setDocument = function( node ) {
            var doc = node ? node.ownerDocument || node : preferredDoc;
        
            // If no document and documentElement is available, return
            if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
        Severity: Major
        Found in js/jquery.2.0.0.js - About 1 day to fix

          Function bootstrapWizardCreate has 205 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var bootstrapWizardCreate = function(element, options) {
              var element = $(element);
              var obj = this;
          
              // selector skips any 'li' elements that do not contain a child with a tab data-toggle
          Severity: Major
          Found in js/jquery.bootstrap.wizard.js - About 1 day to fix

            Function save has 174 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              vm.save = function () {
            
            
                var table = [];
                file.success(function (data) {
            Severity: Major
            Found in js/Controllers/WizardCtrl.js - About 6 hrs to fix

              Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              jQuery.Callbacks = function( options ) {
              
                  // Convert options from String-formatted to Object-formatted if needed
                  // (we check in cache first)
                  options = typeof options === "string" ?
              Severity: Major
              Found in js/jquery.2.0.0.js - About 5 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( event.pageX == null && original.clientX != null ) {
                                eventDoc = event.target.ownerDocument || document;
                                doc = eventDoc.documentElement;
                                body = eventDoc.body;
                
                
                Severity: Critical
                Found in js/jquery.2.0.0.js - About 5 hrs to fix

                  Function defaultPrefilter has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function defaultPrefilter( elem, props, opts ) {
                      /* jshint validthis: true */
                      var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
                          anim = this,
                          style = elem.style,
                  Severity: Major
                  Found in js/jquery.2.0.0.js - About 3 hrs to fix

                    Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function Animation( elem, properties, options ) {
                        var result,
                            stopped,
                            index = 0,
                            length = animationPrefilters.length,
                    Severity: Major
                    Found in js/jquery.2.0.0.js - About 3 hrs to fix

                      Function trigger has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          trigger: function( event, data, elem, onlyHandlers ) {
                      
                              var i, cur, tmp, bubbleType, ontype, handle, special,
                                  eventPath = [ elem || document ],
                                  type = core_hasOwn.call( event, "type" ) ? event.type : event,
                      Severity: Major
                      Found in js/jquery.2.0.0.js - About 3 hrs to fix

                        Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function Sizzle( selector, context, results, seed ) {
                            var match, elem, m, nodeType,
                                // QSA vars
                                i, groups, old, nid, newContext, newSelector;
                        
                        
                        Severity: Major
                        Found in js/jquery.2.0.0.js - About 3 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                if (vm.specialdevices === "yes" || vm.specialsettings === "yes" || vm.socialprofile === "yes" || vm.acceptterms === "yes" || vm.socialprofile === "yes" || vm.downloading === "yes" || vm.register === "yes" || vm.newsletter === "yes" || vm.mobilenumber === "yes" || vm.emailaddress === "yes" || vm.personaldetails === "yes" || vm.autoupdatedisabled === "yes" || vm.referencenumber === "yes") {
                                  result = result.replace("CONDITIONS", "Conditions to use Wifi:")
                                }
                                else {
                                  result = result.replace("CONDITIONS", 'There are not any conditions to use  Wifi ')
                          Severity: Critical
                          Found in js/Controllers/WizardCtrl.js - About 3 hrs to fix

                            Function matcherFromGroupMatchers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                                // A counter to specify which element is currently being matched
                                var matcherCachedRuns = 0,
                                    bySet = setMatchers.length > 0,
                                    byElement = elementMatchers.length > 0,
                            Severity: Major
                            Found in js/jquery.2.0.0.js - About 2 hrs to fix

                              Function add has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  add: function( elem, types, handler, data, selector ) {
                              
                                      var handleObjIn, eventHandle, tmp,
                                          events, t, handleObj,
                                          special, handlers, type, namespaces, origType,
                              Severity: Major
                              Found in js/jquery.2.0.0.js - About 2 hrs to fix

                                File WizardCtrl.js has 281 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                app.controller('WizardController', ['$scope', 'wizard', 'file', function ($scope, wizard, file) {
                                  var vm = this;
                                  // vm.legalformatted = ''
                                  var table = [];
                                  wizard.success(function (data) {
                                Severity: Minor
                                Found in js/Controllers/WizardCtrl.js - About 2 hrs to fix

                                  Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function done( status, nativeStatusText, responses, headers ) {
                                              var isSuccess, success, error, response, modified,
                                                  statusText = nativeStatusText;
                                  
                                              // Called once
                                  Severity: Major
                                  Found in js/jquery.2.0.0.js - About 2 hrs to fix

                                    Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                        if ( postFilter && !postFilter[ expando ] ) {
                                            postFilter = setMatcher( postFilter );
                                        }
                                        if ( postFinder && !postFinder[ expando ] ) {
                                    Severity: Major
                                    Found in js/jquery.2.0.0.js - About 2 hrs to fix

                                      Function superMatcher has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              superMatcher = function( seed, context, xml, results, expandContext ) {
                                                  var elem, j, matcher,
                                                      setMatched = [],
                                                      matchedCount = 0,
                                                      i = "0",
                                      Severity: Major
                                      Found in js/jquery.2.0.0.js - About 2 hrs to fix

                                        Function Deferred has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            Deferred: function( func ) {
                                                var tuples = [
                                                        // action, add listener, listener list, final state
                                                        [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                                        [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                                        Severity: Major
                                        Found in js/jquery.2.0.0.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language