ricarthlima/eo-project-es

View on GitHub

Showing 129 of 135 total issues

Function Dropdown has 335 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var Dropdown = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in app/assets/javascripts/application.js - About 1 day to fix

    Function Collapse has 262 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var Collapse = function ($$$1) {
        /**
         * ------------------------------------------------------------------------
         * Constants
         * ------------------------------------------------------------------------
    Severity: Major
    Found in app/assets/javascripts/application.js - About 1 day to fix

      Function Dropdown has 254 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function () {
            function Dropdown(element, config) {
              this._element = element;
              this._popper = null;
              this._config = this._getConfig(config);
      Severity: Major
      Found in app/assets/javascripts/application.js - About 1 day to fix

        Function ScrollSpy has 220 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var ScrollSpy = function ($$$1) {
            /**
             * ------------------------------------------------------------------------
             * Constants
             * ------------------------------------------------------------------------
        Severity: Major
        Found in app/assets/javascripts/application.js - About 1 day to fix

          Function Collapse has 203 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function () {
                function Collapse(element, config) {
                  this._isTransitioning = false;
                  this._element = element;
                  this._config = this._getConfig(config);
          Severity: Major
          Found in app/assets/javascripts/application.js - About 1 day to fix

            Function Tab has 170 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var Tab = function ($$$1) {
                /**
                 * ------------------------------------------------------------------------
                 * Constants
                 * ------------------------------------------------------------------------
            Severity: Major
            Found in app/assets/javascripts/application.js - About 6 hrs to fix

              Function ScrollSpy has 161 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function () {
                    function ScrollSpy(element, config) {
                      var _this = this;
              
                      this._element = element;
              Severity: Major
              Found in app/assets/javascripts/application.js - About 6 hrs to fix

                Function Popover has 137 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  var Popover = function ($$$1) {
                    /**
                     * ------------------------------------------------------------------------
                     * Constants
                     * ------------------------------------------------------------------------
                Severity: Major
                Found in app/assets/javascripts/application.js - About 5 hrs to fix

                  Function Tab has 127 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function () {
                        function Tab(element) {
                          this._element = element;
                        } // Getters
                  
                  
                  Severity: Major
                  Found in app/assets/javascripts/application.js - About 5 hrs to fix

                    Function Alert has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      var Alert = function ($$$1) {
                        /**
                         * ------------------------------------------------------------------------
                         * Constants
                         * ------------------------------------------------------------------------
                    Severity: Major
                    Found in app/assets/javascripts/application.js - About 4 hrs to fix

                      Function Button has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        var Button = function ($$$1) {
                          /**
                           * ------------------------------------------------------------------------
                           * Constants
                           * ------------------------------------------------------------------------
                      Severity: Major
                      Found in app/assets/javascripts/application.js - About 4 hrs to fix

                        Function Util has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          var Util = function ($$$1) {
                            /**
                             * ------------------------------------------------------------------------
                             * Private TransitionEnd Helpers
                             * ------------------------------------------------------------------------
                        Severity: Major
                        Found in app/assets/javascripts/application.js - About 3 hrs to fix

                          Function Popover has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function (_Tooltip) {
                                _inheritsLoose(Popover, _Tooltip);
                          
                                function Popover() {
                                  return _Tooltip.apply(this, arguments) || this;
                          Severity: Major
                          Found in app/assets/javascripts/application.js - About 3 hrs to fix

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

                                      $$$1(fixedContent).each(function (index, element) {
                                        var actualPadding = element.style.paddingRight;
                                        var calculatedPadding = $$$1(element).css('padding-right');
                                        $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
                                      }); // Adjust sticky content margin
                            Severity: Major
                            Found in app/assets/javascripts/application.js and 1 other location - About 3 hrs to fix
                            app/assets/javascripts/application.js on lines 2356..2360

                            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 101.

                            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

                                      $$$1(stickyContent).each(function (index, element) {
                                        var actualMargin = element.style.marginRight;
                                        var calculatedMargin = $$$1(element).css('margin-right');
                                        $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
                                      }); // Adjust body padding
                            Severity: Major
                            Found in app/assets/javascripts/application.js and 1 other location - About 3 hrs to fix
                            app/assets/javascripts/application.js on lines 2350..2354

                            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 101.

                            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 Alert has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function () {
                                  function Alert(element) {
                                    this._element = element;
                                  } // Getters
                            
                            
                            Severity: Major
                            Found in app/assets/javascripts/application.js - About 3 hrs to fix

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

                                    _proto.show = function show() {
                                      var _this = this;
                              
                                      if ($$$1(this.element).css('display') === 'none') {
                                        throw new Error('Please use show on visible elements');
                              Severity: Major
                              Found in app/assets/javascripts/application.js - About 3 hrs to fix

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

                                          if ($$$1(this._element).hasClass(ClassName.FADE)) {
                                            var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
                                
                                            $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
                                          } else {
                                Severity: Major
                                Found in app/assets/javascripts/application.js and 1 other location - About 2 hrs to fix
                                app/assets/javascripts/application.js on lines 2774..2779

                                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 88.

                                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

                                          if ($$$1(this.tip).hasClass(ClassName.FADE)) {
                                            var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
                                            $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
                                          } else {
                                            complete();
                                Severity: Major
                                Found in app/assets/javascripts/application.js and 1 other location - About 2 hrs to fix
                                app/assets/javascripts/application.js on lines 2302..2308

                                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 88.

                                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 _slide has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      _proto._slide = function _slide(direction, element) {
                                        var _this3 = this;
                                
                                        var activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
                                
                                
                                Severity: Major
                                Found in app/assets/javascripts/application.js - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language