insideout10/wordlift-plugin-js

View on GitHub

Showing 1,798 of 3,223 total issues

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

    blockstmt("for", function () {
        var s, t = nexttoken;
        funct["(breakage)"] += 1;
        funct["(loopage)"] += 1;
        increaseComplexityCount();
Severity: Major
Found in app/lib/jquery-ui-1.10.3/external/jshint.js - About 3 hrs to fix

    Util has 28 functions (exceeds 20 allowed). Consider refactoring.
    Open

        VMM.Util = ({
            
            init: function() {
                return this;
            },
    Severity: Minor
    Found in app/lib/TimelineJS.build/build/js/timeline.js - About 3 hrs to fix

      Function createControl has 83 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              createControl: function(name, cm) {
                  var t = this, btn, format, editor = t.editor;
      
                  if (name == 'numlist' || name == 'bullist') {
                      // Default to first item if it's a default item

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

                this.addRange = function(rng) {
                    var ieRng, ctrlRng, startContainer, startOffset, endContainer, endOffset, sibling,
                        doc = selection.dom.doc, body = doc.body, nativeRng, ctrlElm;
        
                    function setEndPoint(start) {
        Severity: Major
        Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 3 hrs to fix

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

                          send: function( headers, complete ) {
          
                              // Get a new xhr
                              var handle, i,
                                  xhr = s.xhr();
          Severity: Major
          Found in app/lib/jquery-ui-1.10.3/jquery-1.9.1.js - About 3 hrs to fix

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

            function init() {
                tinyMCEPopup.resizeToInnerSize();
            
                document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
                document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
            Severity: Major
            Found in app/lib/tinymce/jscripts/tiny_mce/plugins/table/js/table.js - About 3 hrs to fix

              Function _keydown has 81 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _keydown: function( event ) {
                      /*jshint maxcomplexity:20*/
                      var match, prev, character, skip, regex,
                          preventDefault = true;
              
              
              Severity: Major
              Found in app/lib/jquery-ui-1.10.3/ui/jquery.ui.menu.js - About 3 hrs to fix

                Function _keydown has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _keydown: function( event ) {
                        /*jshint maxcomplexity:20*/
                        var match, prev, character, skip, regex,
                            preventDefault = true;
                
                
                Severity: Major
                Found in app/lib/jquery-ui-1.10.3/ui/jquery-ui.js - About 3 hrs to fix

                  Function data has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    d3_selectionPrototype.data = function(value, key) {
                      var i = -1, n = this.length, group, node;
                      if (!arguments.length) {
                        value = new Array(n = (group = this[0]).length);
                        while (++i < n) {
                  Severity: Major
                  Found in app/lib/d3/d3.js - About 3 hrs to fix

                    Function thumbnail has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            thumbnail: function(data, w, h, uid) {
                                var _w        = 16,
                                    _h        = 24,
                                    _uid    = "";
                                    
                    Severity: Major
                    Found in app/lib/TimelineJS.build/build/js/timeline.js - About 3 hrs to fix

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

                      function init() {
                          tinyMCEPopup.resizeToInnerSize();
                      
                          var formObj = document.forms[0];
                          var inst = tinyMCEPopup.editor;
                      Severity: Major
                      Found in app/lib/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js - About 3 hrs to fix

                        Function walk has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                this.walk = function(rng, callback) {
                                    var startContainer = rng.startContainer,
                                        startOffset = rng.startOffset,
                                        endContainer = rng.endContainer,
                                        endOffset = rng.endOffset,
                        Severity: Major
                        Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 3 hrs to fix

                          Function ForceBlocks has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          tinymce.ForceBlocks = function(editor) {
                              var settings = editor.settings, dom = editor.dom, selection = editor.selection, blockElements = editor.schema.getBlockElements();
                          
                              function addRootBlocks() {
                                  var node = selection.getStart(), rootNode = editor.getBody(), rng, startContainer, startOffset, endContainer, endOffset, rootBlockNode, tempNode, offset = -0xFFFFFF, wrapped, isInEditorDocument;
                          Severity: Major
                          Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 3 hrs to fix

                            Function mceInsertContent has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        mceInsertContent : function(command, ui, value) {
                                            var parser, serializer, parentNode, rootNode, fragment, args,
                                                marker, nodeRect, viewPortRect, rng, node, node2, bookmarkHtml, viewportBodyElement;
                            
                                            //selection.normalize();
                            Severity: Major
                            Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 3 hrs to fix

                              Lib has 27 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                                  VMM.Lib = {
                                      
                                      init: function() {
                                          return this;
                                      },
                              Severity: Minor
                              Found in app/lib/TimelineJS.build/build/js/timeline.js - About 3 hrs to fix

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

                                function init(ed) {
                                    var ce = document.getElementById('container'), h;
                                
                                    existingStyles = aggregateStyles(tinyMCEPopup.getWindowArg('styles'));
                                    ce.style.cssText = tinyMCEPopup.editor.dom.serializeStyle(existingStyles);
                                Severity: Major
                                Found in app/lib/tinymce/jscripts/tiny_mce/plugins/style/js/props.js - About 3 hrs to fix

                                  Function getAttrib has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          getAttrib : function(e, n, dv) {
                                              var v, t = this, undef;
                                  
                                              e = t.get(e);
                                  
                                  Severity: Major
                                  Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 3 hrs to fix

                                    Function Element has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        tinymce.dom.Element = function(id, settings) {
                                            var t = this, dom, el;
                                    
                                            t.settings = settings = settings || {};
                                            t.id = id;
                                    Severity: Major
                                    Found in app/lib/tinymce/jscripts/tiny_mce/tiny_mce_src.js - About 3 hrs to fix

                                      Function Serializer has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          tinymce.html.Serializer = function(settings, schema) {
                                              var self = this, writer = new tinymce.html.Writer(settings);
                                      
                                              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 3 hrs to fix

                                        Function formatDate has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            formatDate: function (format, date, settings) {
                                                if (!date) {
                                                    return "";
                                                }
                                        
                                        
                                        Severity: Major
                                        Found in app/lib/jquery-ui-1.10.3/ui/jquery.ui.datepicker.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language