insideout10/wordlift-plugin-js

View on GitHub

Showing 1,798 of 3,223 total issues

File wordlift-reloaded.js has 1251 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function() {
  var $, Traslator, container, injector,
    __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

  Traslator = (function() {
Severity: Major
Found in app/js/wordlift-reloaded.js - About 3 days to fix

    Function lex has 643 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var lex = (function lex() {
            var character, from, line, s;
    
    // Private lex methods
    
    
    Severity: Major
    Found in app/lib/jquery-ui-1.10.3/external/jshint.js - About 3 days to fix

      File globalize.js has 1162 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Globalize
       *
       * http://github.com/jquery/globalize
       *
      Severity: Major
      Found in app/lib/jquery-ui-1.10.3/external/globalize.js - About 2 days to fix

        Function Slider has 567 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            VMM.Slider = function(parent, parent_config) {
                
                var config,
                    timer,
                    $slider,
        Severity: Major
        Found in app/lib/TimelineJS.build/build/js/timeline.js - About 2 days to fix

          File editor_template_src.js has 1087 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

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

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

            /**
             * editor_plugin_src.js
             *
             * Copyright 2009, Moxiecode Systems AB
             * Released under LGPL License.
            Severity: Major
            Found in app/lib/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js - About 2 days to fix

              Function TableGrid has 532 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function TableGrid(table, dom, selection) {
                      var grid, startPos, endPos, selectedCell;
              
                      buildGrid();
                      selectedCell = dom.getParent(selection.getStart(), 'th,td');
              Severity: Major
              Found in app/lib/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js - About 2 days to fix

                Function Quirks has a Cognitive Complexity of 129 (exceeds 5 allowed). Consider refactoring.
                Open

                tinymce.util.Quirks = function(editor) {
                    var VK = tinymce.VK, BACKSPACE = VK.BACKSPACE, DELETE = VK.DELETE, dom = editor.dom, selection = editor.selection,
                        settings = editor.settings, parser = editor.parser, serializer = editor.serializer, each = tinymce.each;
                
                    function setEditorCommandState(cmd, state) {
                Severity: Minor
                Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 2 days 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

                Function token has 514 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            token: function () {
                                var b, c, captures, d, depth, high, i, l, low, q, t, isLiteral, isInRange, n;
                
                                function match(x) {
                                    var r = x.exec(s), r1;
                Severity: Major
                Found in app/lib/jquery-ui-1.10.3/external/jshint.js - About 2 days to fix

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

                          init : function(ed, url) {
                              var winMan, clipboardRows, hasCellSelection = true; // Might be selected cells on reload
                  
                              function createTableGrid(node) {
                                  var selection = ed.selection, tblElm = ed.dom.getParent(node || selection.getNode(), 'table');
                  Severity: Major
                  Found in app/lib/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js - About 2 days to fix

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

                    /*!
                     * jQuery UI Effects 1.10.3
                     * http://jqueryui.com
                     *
                     * Copyright 2013 jQuery Foundation and other contributors
                    Severity: Major
                    Found in app/lib/jquery-ui-1.10.3/ui/jquery.ui.effect.js - About 2 days to fix

                      Function Timeline has 489 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          VMM.Timeline = function(_timeline_id, w, h) {
                              
                              var $timeline,
                                  $container,
                                  $feature,
                      Severity: Major
                      Found in app/lib/TimelineJS.build/build/js/timeline.js - About 2 days to fix

                        Function Range has 481 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function Range(dom) {
                                var t = this,
                                    doc = dom.doc,
                                    EXTRACT = 0,
                                    CLONE = 1,
                        Severity: Major
                        Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 2 days to fix

                          Function Slide has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
                          Open

                              VMM.Slider.Slide = function(d, _parent) {
                                  
                                  var $media, $text, $slide, $wrap, element, c,
                                      data        = d,
                                      slide        = {},
                          Severity: Minor
                          Found in app/lib/TimelineJS.build/build/js/timeline.js - About 2 days 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

                          Function createAPIMap has a Cognitive Complexity of 115 (exceeds 5 allowed). Consider refactoring.
                          Open

                                      createAPIMap: function(m) {
                                          var map_attribution    = "",
                                              layer,
                                              map,
                                              map_options,
                          Severity: Minor
                          Found in app/lib/TimelineJS.build/build/js/timeline.js - About 2 days 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

                          Function buildData has a Cognitive Complexity of 115 (exceeds 5 allowed). Consider refactoring.
                          Open

                                          buildData: function(d) {
                                              VMM.fireEvent(global, VMM.Timeline.Config.events.messege, "Parsing Data");
                                              var _data_obj = VMM.Timeline.DataObj.data_template_obj;
                                              
                                              _data_obj.timeline.startDate    =     new Date(d.content.date.created);;
                          Severity: Minor
                          Found in app/lib/TimelineJS.build/build/js/timeline.js - About 2 days 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 jquery.ui.sortable.js has 909 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*!
                           * jQuery UI Sortable 1.10.3
                           * http://jqueryui.com
                           *
                           * Copyright 2013 jQuery Foundation and other contributors
                          Severity: Major
                          Found in app/lib/jquery-ui-1.10.3/ui/jquery.ui.sortable.js - About 2 days to fix

                            Function Styles has a Cognitive Complexity of 110 (exceeds 5 allowed). Consider refactoring.
                            Open

                            tinymce.html.Styles = function(settings, schema) {
                                var rgbRegExp = /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,
                                    urlOrStrRegExp = /(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,
                                    styleRegExp = /\s*([^:]+):\s*([^;]+);?/g,
                                    trimRightRegExp = /\s+$/,
                            Severity: Minor
                            Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 2 days 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 angular-animate.js has 898 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * @license AngularJS v1.2.14
                             * (c) 2010-2014 Google, Inc. http://angularjs.org
                             * License: MIT
                             */
                            Severity: Major
                            Found in app/lib/angular/angular-animate.js - About 2 days to fix

                              Function DomParser has 436 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  tinymce.html.DomParser = function(settings, schema) {
                                      var self = this, nodeFilters = {}, attributeFilters = [], matchedNodes = {}, matchedAttributes = {};
                              
                                      settings = settings || {};
                                      settings.validate = "validate" in settings ? settings.validate : true;
                              Severity: Major
                              Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 2 days to fix
                                Severity
                                Category
                                Status
                                Source
                                Language