devworkstecnology/webadmin

View on GitHub

Showing 202 of 202 total issues

Function datetimepicker has 1144 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.datetimepicker = function (opt) {
        var KEY0 = 48,
            KEY9 = 57,
            _KEY0 = 96,
            _KEY9 = 105,
Severity: Major
Found in vendor/assets/javascripts/jquery.datetimepicker.js - About 5 days to fix

    File jquery.datetimepicker.js has 1843 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * @preserve jQuery DateTimePicker plugin v2.4.5
     * @homepage http://xdsoft.net/jqplugins/datetimepicker/
     * (c) 2014, Chupurnov Valeriy.
     */
    Severity: Major
    Found in vendor/assets/javascripts/jquery.datetimepicker.js - About 5 days to fix

      File bootstrap.js has 1256 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Bootstrap v3.1.1 (http://getbootstrap.com)
       * Copyright 2011-2014 Twitter, Inc.
       * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
       */
      Severity: Major
      Found in vendor/assets/javascripts/bootstrap.js - About 3 days to fix

        File fuelux.js has 1091 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        
        /*
         * Fuel UX Checkbox
         * https://github.com/ExactTarget/fuelux
         *
        Severity: Major
        Found in vendor/assets/javascripts/fuelux/fuelux.js - About 2 days to fix

          File excanvas.js has 655 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // Copyright 2006 Google Inc.
          //
          // Licensed under the Apache License, Version 2.0 (the "License");
          // you may not use this file except in compliance with the License.
          // You may obtain a copy of the License at
          Severity: Major
          Found in vendor/assets/javascripts/ie/excanvas.js - About 1 day to fix

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

                    if (this.range) {
                        this.value[0] = Math.max(this.min, Math.min(this.max, this.value[0]));
                        this.value[1] = Math.max(this.min, Math.min(this.max, this.value[1]));
                    } else {
                        this.value = [ Math.max(this.min, Math.min(this.max, this.value))];
            Severity: Major
            Found in vendor/assets/javascripts/slider/bootstrap-slider.js and 1 other location - About 1 day to fix
            vendor/assets/javascripts/slider/bootstrap-slider.js on lines 336..347

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 228.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

                        if (this.range) {
                            this.value[0] = Math.max(this.min, Math.min(this.max, this.value[0]));
                            this.value[1] = Math.max(this.min, Math.min(this.max, this.value[1]));
                        } else {
                            this.value = [ Math.max(this.min, Math.min(this.max, this.value))];
            Severity: Major
            Found in vendor/assets/javascripts/slider/bootstrap-slider.js and 1 other location - About 1 day to fix
            vendor/assets/javascripts/slider/bootstrap-slider.js on lines 102..113

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 228.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Function setOptions has 241 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        datetimepicker.setOptions = function (_options) {
                            var highlightedDates = {},
                                getCaretPos = function (input) {
                                    try {
                                        if (document.selection && document.selection.createRange) {
            Severity: Major
            Found in vendor/assets/javascripts/jquery.datetimepicker.js - About 1 day to fix

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                Tooltip.prototype.enter = function (obj) {
                  var self = obj instanceof this.constructor ?
                    obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
              
                  clearTimeout(self.timeout)
              Severity: Major
              Found in vendor/assets/javascripts/bootstrap.js and 1 other location - About 1 day to fix
              vendor/assets/javascripts/bootstrap.js on lines 1133..1146

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 204.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                Tooltip.prototype.leave = function (obj) {
                  var self = obj instanceof this.constructor ?
                    obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
              
                  clearTimeout(self.timeout)
              Severity: Major
              Found in vendor/assets/javascripts/bootstrap.js and 1 other location - About 1 day to fix
              vendor/assets/javascripts/bootstrap.js on lines 1118..1131

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 204.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                  $(function () {
              
                      $(window).on('load', function () {
                          $('.combobox').each(function () {
                              var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1293..1308

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 162.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                  $(function () {
              
                      $(window).on('load', function () {
                          $('.select').each(function () {
                              var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 293..308

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 162.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              File bootstrap-datepicker.js has 428 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /* =========================================================
               * bootstrap-datepicker.js 
               * http://www.eyecon.ro/bootstrap-datepicker
               * =========================================================
               * Copyright 2012 Stefan Petre
              Severity: Minor
              Found in vendor/assets/javascripts/datepicker/bootstrap-datepicker.js - About 6 hrs to fix

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.checkbox = function (option, value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.radio = function (option, value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
                vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.spinner = function (option,value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
                vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.wizard = function (option, value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
                vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.tree = function (option, value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
                vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.combobox = function (option, value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
                vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 7 locations. Consider refactoring.
                Open

                    $.fn.select = function (option,value) {
                        var methodReturn;
                
                        var $set = this.each(function () {
                            var $this = $(this);
                Severity: Major
                Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
                vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
                vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
                vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
                vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 157.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Severity
                Category
                Status
                Source
                Language