olneyhymn/westminster-daily

View on GitHub

Showing 35 of 96 total issues

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

/*!
  * Bootstrap v4.2.1 (https://getbootstrap.com/)
  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
Severity: Major
Found in static/js/bootstrap.js - About 1 wk to fix

    Function Tooltip has 444 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function () {
        function Tooltip(element, config) {
          /**
           * Check for Popper dependency
           * Popper - https://popper.js.org
    Severity: Major
    Found in static/js/bootstrap.js - About 2 days to fix

      Function Carousel has 363 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function () {
          function Carousel(element, config) {
            this._items = null;
            this._interval = null;
            this._activeElement = null;
      Severity: Major
      Found in static/js/bootstrap.js - About 1 day to fix

        Function Modal has 342 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function () {
            function Modal(element, config) {
              this._config = this._getConfig(config);
              this._element = element;
              this._dialog = element.querySelector(Selector$5.DIALOG);
        Severity: Major
        Found in static/js/bootstrap.js - About 1 day to fix

          Function Dropdown has 286 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 static/js/bootstrap.js - About 1 day to fix

            Function Collapse has 204 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 static/js/bootstrap.js - About 1 day to fix

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

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

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

                  function () {
                    function Tab(element) {
                      this._element = element;
                    } // Getters
                
                
                Severity: Major
                Found in static/js/bootstrap.js - About 4 hrs to fix

                  Function Toast has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function () {
                      function Toast(element, config) {
                        this._element = element;
                        this._config = this._getConfig(config);
                        this._timeout = null;
                  Severity: Major
                  Found in static/js/bootstrap.js - About 4 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 static/js/bootstrap.js - About 3 hrs to fix

                      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 static/js/bootstrap.js - About 3 hrs to fix

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

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

                          Function _slide has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _proto._slide = function _slide(direction, element) {
                                var _this4 = this;
                          
                                var activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM);
                          
                          
                          Severity: Major
                          Found in static/js/bootstrap.js - About 2 hrs to fix

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

                              function () {
                                function Button(element) {
                                  this._element = element;
                                } // Getters
                            
                            
                            Severity: Major
                            Found in static/js/bootstrap.js - About 2 hrs to fix

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

                                  _proto._addTouchEventListeners = function _addTouchEventListeners() {
                                    var _this3 = this;
                              
                                    if (!this._touchSupported) {
                                      return;
                              Severity: Major
                              Found in static/js/bootstrap.js - About 2 hrs to fix

                                Function _showBackdrop has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _proto._showBackdrop = function _showBackdrop(callback) {
                                      var _this8 = this;
                                
                                      var animate = $(this._element).hasClass(ClassName$5.FADE) ? ClassName$5.FADE : '';
                                
                                
                                Severity: Major
                                Found in static/js/bootstrap.js - About 2 hrs to fix

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

                                      _proto.show = function show() {
                                        var _this = this;
                                  
                                        if (this._isTransitioning || $(this._element).hasClass(ClassName$3.SHOW)) {
                                          return;
                                  Severity: Major
                                  Found in static/js/bootstrap.js - About 2 hrs to fix

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

                                        _proto.show = function show() {
                                          var _this = this;
                                    
                                          if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName$9.ACTIVE) || $(this._element).hasClass(ClassName$9.DISABLED)) {
                                            return;
                                    Severity: Minor
                                    Found in static/js/bootstrap.js - About 1 hr to fix

                                      Function toggle has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _proto.toggle = function toggle() {
                                            if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED)) {
                                              return;
                                            }
                                      
                                      
                                      Severity: Minor
                                      Found in static/js/bootstrap.js - About 1 hr to fix

                                        Function hide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _proto.hide = function hide(callback) {
                                              var _this2 = this;
                                        
                                              var tip = this.getTipElement();
                                              var hideEvent = $.Event(this.constructor.Event.HIDE);
                                        Severity: Minor
                                        Found in static/js/bootstrap.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language