EOL-Labs/mely

View on GitHub

Showing 297 of 530 total issues

Function validate has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        validate: function(validator, $field, options) {
            var value = $field.val();
            if (value === '') {
                return true;
            }
Severity: Major
Found in static/js/bootstrapValidator.js - About 3 hrs to fix

    Function validate has 75 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            validate: function(validator, $field, options) {
                var value = $field.val();
                if (value === '') {
                    return true;
                }
    Severity: Major
    Found in static/js/bootstrap/bootstrapValidator.js - About 3 hrs to fix

      File theme.js has 286 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      var models = require("./models");
      var glob = require("glob");
      var changeCase = require("change-case");
      var fs = require("fs");
      var internals = {};
      Severity: Minor
      Found in lib/theme.js - About 2 hrs to fix

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

                _bg: function(value) {
                    if (/^BG[0-9]{9,10}$/.test(value)) {
                        value = value.substr(2);
                    }
                    if (!/^[0-9]{9,10}$/.test(value)) {
        Severity: Major
        Found in static/js/bootstrapValidator.js - About 2 hrs to fix

          File angular-sanitize.js has 285 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * @license AngularJS v1.2.24
           * (c) 2010-2014 Google, Inc. http://angularjs.org
           * License: MIT
           */
          Severity: Minor
          Found in static/js/angular/angular-sanitize.js - About 2 hrs to fix

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

                    _bg: function(value) {
                        if (/^BG[0-9]{9,10}$/.test(value)) {
                            value = value.substr(2);
                        }
                        if (!/^[0-9]{9,10}$/.test(value)) {
            Severity: Major
            Found in static/js/bootstrap/bootstrapValidator.js - About 2 hrs to fix

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

                  commandProto.doList = function (chunk, postProcessing, isNumberedList) {
              
                      // These are identical except at the very beginning and end.
                      // Should probably use the regex extension function to make this clearer.
                      var previousItemsRegex = /(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;
              Severity: Major
              Found in static/js/jquery/jquery.pagedown-bootstrap.combined.js - About 2 hrs to fix

                Function _cz has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _cz: function(value) {
                            if (/^CZ[0-9]{8,10}$/.test(value)) {
                                value = value.substr(2);
                            }
                            if (!/^[0-9]{8,10}$/.test(value)) {
                Severity: Major
                Found in static/js/bootstrapValidator.js - About 2 hrs to fix

                  Function _cz has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          _cz: function(value) {
                              if (/^CZ[0-9]{8,10}$/.test(value)) {
                                  value = value.substr(2);
                              }
                              if (!/^[0-9]{8,10}$/.test(value)) {
                  Severity: Major
                  Found in static/js/bootstrap/bootstrapValidator.js - About 2 hrs to fix

                    Function exports has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    module.exports = function(sequelize, DataTypes) {
                        var ThemeSetting = sequelize.define("ThemeSetting", {
                            headerfilename: {
                                type: DataTypes.STRING(50)
                            },
                    Severity: Major
                    Found in lib/models/themesetting.js - About 2 hrs to fix

                      Function updateTheme has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      internals.updateTheme = function(input, callback){
                          var errorMessages = [];
                          var id = input.id;
                          var name = input.name;
                          var description = input.description;
                      Severity: Major
                      Found in lib/theme.js - About 2 hrs to fix

                        Function validate has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                validate: function(validator, $field, options) {
                                    var value = $field.val();
                                    if (value === '' || !options.country) {
                                        return true;
                                    }
                        Severity: Major
                        Found in static/js/bootstrapValidator.js - About 2 hrs to fix

                          Function validate has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  validate: function(validator, $field, options) {
                                      var value = $field.val();
                                      if (value === '' || !options.country) {
                                          return true;
                                      }
                          Severity: Major
                          Found in static/js/bootstrap/bootstrapValidator.js - About 2 hrs to fix

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

                            internals.createTheme = function(input, callback){
                                var errorMessages = [];
                                var systemid = input.systemid;
                                var name = input.name;
                                var description = input.description;
                            Severity: Major
                            Found in lib/theme.js - About 2 hrs to fix

                              Function handler has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      handler: function(request, reply){
                                          Mely.System.createSystem({
                                              name: request.payload["mely-name"],
                                              description: request.payload["mely-description"] ? request.payload["mely-description"] : null
                                          }, function(err, system){
                              Severity: Major
                              Found in lib/routes/index.js - About 2 hrs to fix

                                Function _parseOptions has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _parseOptions: function($field) {
                                            var field      = $field.attr('name') || $field.attr('data-bv-field'),
                                                validators = {},
                                                validator,
                                                v,          // Validator name
                                Severity: Major
                                Found in static/js/bootstrapValidator.js - About 2 hrs to fix

                                  Function _parseOptions has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          _parseOptions: function($field) {
                                              var field      = $field.attr('name') || $field.attr('data-bv-field'),
                                                  validators = {},
                                                  validator,
                                                  v,          // Validator name
                                  Severity: Major
                                  Found in static/js/bootstrap/bootstrapValidator.js - About 2 hrs to fix

                                    Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      Tooltip.prototype.show = function () {
                                        var e = $.Event('show.bs.' + this.type)
                                    
                                        if (this.hasContent() && this.enabled) {
                                          this.$element.trigger(e)
                                    Severity: Major
                                    Found in static/js/bootstrap/bootstrap.js - About 2 hrs to fix

                                      Function destroy has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              destroy: function() {
                                                  var field, fields, $field, validator, $icon, group;
                                                  for (field in this.options.fields) {
                                                      fields    = this.getFieldElements(field);
                                                      group     = this.options.fields[field].group || this.options.group;
                                      Severity: Major
                                      Found in static/js/bootstrapValidator.js - About 2 hrs to fix

                                        Function destroy has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                destroy: function() {
                                                    var field, fields, $field, validator, $icon, group;
                                                    for (field in this.options.fields) {
                                                        fields    = this.getFieldElements(field);
                                                        group     = this.options.fields[field].group || this.options.group;
                                        Severity: Major
                                        Found in static/js/bootstrap/bootstrapValidator.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language