insideout10/wordlift-plugin-js

View on GitHub

Showing 1,798 of 3,223 total issues

Function init has 129 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        init : function(ed, url) {
            var t = this, s = {}, de = DOM.doc.documentElement, vp, fullscreen_overflow, fullscreen_html_overflow, fullscreen_scrollx, fullscreen_scrolly, posCss, bookmark;

            // Register commands
            ed.addCommand('mceFullScreen', function() {

    File jquery-migrate.js has 379 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery Migrate - v1.2.1 - 2013-05-08
     * https://github.com/jquery/jquery-migrate
     * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
     */
    Severity: Minor
    Found in app/admin_files/jquery-migrate.js - About 5 hrs to fix

      Function buildDataCells has 127 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      buildDataCells: function(d) {
                          var data_obj    = VMM.Timeline.DataObj.data_template_obj,
                              is_valid    = false,
                              cellnames    = ["timeline"],
                              list         = [],
      Severity: Major
      Found in app/lib/TimelineJS.build/build/js/timeline.js - About 5 hrs to fix

        Function Callbacks has 127 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 app/lib/jquery-ui-1.10.3/jquery-1.9.1.js - About 5 hrs to fix

          File editor_plugin_src.js has 378 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * editor_plugin_src.js
           *
           * Copyright 2009, Moxiecode Systems AB
           * Released under LGPL License.

            Function bounds has 126 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              d3.geo.bounds = function() {
                var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
                var bound = {
                  point: point,
                  lineStart: lineStart,
            Severity: Major
            Found in app/lib/d3/d3.js - About 5 hrs to fix

              Function equiv has 126 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              QUnit.equiv = (function() {
              
                  // Call the o related callback with the given arguments.
                  function bindCallbacks( o, callbacks, args ) {
                      var prop = QUnit.objectType( o );
              Severity: Major
              Found in app/lib/jquery-ui-1.10.3/external/qunit.js - About 5 hrs to fix

                File jquery.ui.spinner.js has 376 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*!
                 * jQuery UI Spinner 1.10.3
                 * http://jqueryui.com
                 *
                 * Copyright 2013 jQuery Foundation and other contributors
                Severity: Minor
                Found in app/lib/jquery-ui-1.10.3/ui/jquery.ui.spinner.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 app/lib/jquery-ui-1.10.3/jquery-1.9.1.js - About 5 hrs to fix

                    Function handleKey has 124 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function handleKey(ed, e) {
                                var keyCode = e.keyCode, nonEditableParent, caretContainer, startElement, endElement;
                    
                                function getNonEmptyTextNodeSibling(node, prev) {
                                    while (node = node[prev ? 'previousSibling' : 'nextSibling']) {

                      File heartbeat.js has 372 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /**
                       * Heartbeat API
                       *
                       * Note: this API is "experimental" meaning it will likely change a lot
                       * in the next few releases based on feedback from 3.6.0. If you intend
                      Severity: Minor
                      Found in app/admin_files/heartbeat.js - About 4 hrs to fix

                        Function $get has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {
                        
                            /**
                             * @ngdoc service
                             * @name $route
                        Severity: Major
                        Found in app/lib/angular/angular-route.js - About 4 hrs to fix

                          Function animate has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                          Open

                                  animate: function(element, duration, ease, att, que, callback_function) {
                                      
                                      var _ease        = "easein",
                                          _que        = false,
                                          _duration    = 1000,
                          Severity: Minor
                          Found in app/lib/TimelineJS.build/build/js/timeline.js - About 4 hrs to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          File wordlift.ui.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          (function() {
                            var $;
                          
                            $ = jQuery;
                          
                          
                          Severity: Minor
                          Found in app/js/wordlift.ui.js - About 4 hrs to fix

                            Function resourceFactory has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function resourceFactory(url, paramDefaults, actions) {
                                  var route = new Route(url);
                            
                                  actions = extend({}, DEFAULT_ACTIONS, actions);
                            
                            
                            Severity: Major
                            Found in app/lib/angular/angular-resource.js - About 4 hrs to fix

                              Function animationRunner has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    function animationRunner(element, animationEvent, className) {
                                      //transcluded directives may sometimes fire an animation using only comment nodes
                                      //best to catch this early on to prevent any animation operations from occurring
                                      var node = element[0];
                                      if(!node) {
                              Severity: Major
                              Found in app/lib/angular/angular-animate.js - About 4 hrs to fix

                                Function axis has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  d3.svg.axis = function() {
                                    var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
                                    function axis(g) {
                                      g.each(function() {
                                        var g = d3.select(this);
                                Severity: Major
                                Found in app/lib/d3/d3.js - About 4 hrs to fix

                                  Function getHTML4 has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function getHTML4() {
                                          var html4 = mapCache.html4;
                                  
                                          if (!html4) {
                                              // This is the XHTML 1.0 transitional elements with it's attributes and children packed to reduce it's size
                                  Severity: Major
                                  Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 4 hrs to fix

                                    Function ScriptLoader has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        tinymce.dom.ScriptLoader = function(settings) {
                                            var QUEUED = 0,
                                                LOADING = 1,
                                                LOADED = 2,
                                                states = {},
                                    Severity: Major
                                    Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 4 hrs to fix

                                      Function getHTML4 has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function getHTML4() {
                                              var html4 = mapCache.html4;
                                      
                                              if (!html4) {
                                                  // This is the XHTML 1.0 transitional elements with it's attributes and children packed to reduce it's size
                                      Severity: Major
                                      Found in app/admin_files/wp-tinymce-schema.js - About 4 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language