EOL-Labs/mely

View on GitHub

Showing 297 of 530 total issues

File bootstrapValidator.js has 5222 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * BootstrapValidator (http://bootstrapvalidator.com)
 * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
 *
 * @version     v0.5.2, built on 2014-09-25 4:01:07 PM
Severity: Major
Found in static/js/bootstrapValidator.js - About 2 wks to fix

    File bootstrapValidator.js has 5222 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * BootstrapValidator (http://bootstrapvalidator.com)
     * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
     *
     * @version     v0.5.2, built on 2014-09-25 4:01:07 PM
    Severity: Major
    Found in static/js/bootstrap/bootstrapValidator.js - About 2 wks to fix

      File jquery.pagedown-bootstrap.combined.js has 2039 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      var Markdown;
      
      if (typeof exports === "object" && typeof require === "function") // we're in a CommonJS (e.g. Node.js) module
          Markdown = exports;
      else
      Severity: Major
      Found in static/js/jquery/jquery.pagedown-bootstrap.combined.js - About 5 days to fix

        Function color has a Cognitive Complexity of 224 (exceeds 5 allowed). Consider refactoring.
        Open

            color : function(target, prop) {
        
        
                this.required = true; // refuse empty values?
                this.adjust = true; // adjust value to uniform notation?
        Severity: Minor
        Found in static/js/jscolor/jscolor.js - About 4 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 bootstrap.js has 1548 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * Bootstrap v3.3.4 (http://getbootstrap.com)
         * Copyright 2011-2015 Twitter, Inc.
         * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
         */
        Severity: Major
        Found in static/js/bootstrap/bootstrap.js - About 4 days to fix

          File index.js has 1339 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          var crypto = require("crypto");
          var moment = require("moment");
          var marked = require("marked");
          var joi = require("joi");
          var changeCase = require("change-case");
          Severity: Major
          Found in lib/routes/index.js - About 3 days to fix

            Function color has 565 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                color : function(target, prop) {
            
            
                    this.required = true; // refuse empty values?
                    this.adjust = true; // adjust value to uniform notation?
            Severity: Major
            Found in static/js/jscolor/jscolor.js - About 2 days to fix

              Function _cn has 497 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      _cn: function(value) {
                          // Basic format check (18 or 15 digits, considering X in checksum)
                          value = value.trim();
                          if (!/^\d{15}$/.test(value) && !/^\d{17}[\dXx]{1}$/.test(value)) {
                              return false;
              Severity: Major
              Found in static/js/bootstrapValidator.js - About 2 days to fix

                Function _cn has 497 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _cn: function(value) {
                            // Basic format check (18 or 15 digits, considering X in checksum)
                            value = value.trim();
                            if (!/^\d{15}$/.test(value) && !/^\d{17}[\dXx]{1}$/.test(value)) {
                                return false;
                Severity: Major
                Found in static/js/bootstrap/bootstrapValidator.js - About 2 days to fix

                  Function Converter has 448 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Markdown.Converter = function () {
                          var pluginHooks = this.hooks = new HookCollection();
                          pluginHooks.addNoop("plainLinkText");  // given a URL that was encountered by itself (without markup), should return the link text that's to be given to this link
                          pluginHooks.addNoop("preConversion");  // called with the orignal text as given to makeHtml. The result of this plugin hook is the actual markdown source that will be cooked
                          pluginHooks.addNoop("postConversion"); // called with the final cooked HTML code. The result of this plugin hook is the actual output of makeHtml
                  Severity: Major
                  Found in static/js/jquery/jquery.pagedown-bootstrap.combined.js - About 2 days to fix

                    File jscolor.js has 821 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /**
                     * jscolor, JavaScript Color Picker
                     *
                     * @version 1.4.2
                     * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
                    Severity: Major
                    Found in static/js/jscolor/jscolor.js - About 1 day to fix

                      Function scrollReveal has 337 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      window.scrollReveal = (function( window ) {
                      
                        'use strict'
                      
                        var _requestAnimFrame
                      Severity: Major
                      Found in static/js/scrollreveal/scrollReveal.js - About 1 day to fix

                        Function URI has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
                        Open

                            URI : function(uri) { // See RFC3986
                        
                                this.scheme = null;
                                this.authority = null;
                                this.path = '';
                        Severity: Minor
                        Found in static/js/jscolor/jscolor.js - About 1 day 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 UIManager has 219 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function UIManager(postfix, panels, undoManager, previewManager, commandManager, helpOptions) {
                        
                                var inputBox = panels.input,
                                    buttons = {}; // buttons.undo, buttons.link, etc. The actual DOM elements.
                        
                        
                        Severity: Major
                        Found in static/js/jquery/jquery.pagedown-bootstrap.combined.js - About 1 day to fix

                          Function drawPicker has 193 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function drawPicker(x, y) {
                                      if(!jscolor.picker) {
                                          jscolor.picker = {
                                              box : document.createElement('div'),
                                              boxB : document.createElement('div'),
                          Severity: Major
                          Found in static/js/jscolor/jscolor.js - About 7 hrs to fix

                            Function _initField has 179 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    _initField: function(field) {
                                        var fields = $([]);
                                        switch (typeof field) {
                                            case 'object':
                                                fields = field;
                            Severity: Major
                            Found in static/js/bootstrapValidator.js - About 7 hrs to fix

                              Function _initField has 179 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      _initField: function(field) {
                                          var fields = $([]);
                                          switch (typeof field) {
                                              case 'object':
                                                  fields = field;
                              Severity: Major
                              Found in static/js/bootstrap/bootstrapValidator.js - About 7 hrs to fix

                                Function UndoManager has 171 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function UndoManager(callback, panels) {
                                
                                        var undoObj = this;
                                        var undoStack = []; // A stack of undo states
                                        var stackPtr = 0; // The index of the current state
                                Severity: Major
                                Found in static/js/jquery/jquery.pagedown-bootstrap.combined.js - About 6 hrs to fix

                                  Function PreviewManager has 139 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function PreviewManager(converter, panels, previewRefreshCallback) {
                                  
                                          var managerObj = this;
                                          var timeout;
                                          var elapsedTime;
                                  Severity: Major
                                  Found in static/js/jquery/jquery.pagedown-bootstrap.combined.js - About 5 hrs to fix

                                    Function updateStatus has 133 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            updateStatus: function(field, status, validatorName) {
                                                var fields = $([]);
                                                switch (typeof field) {
                                                    case 'object':
                                                        fields = field;
                                    Severity: Major
                                    Found in static/js/bootstrapValidator.js - About 5 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language