twbs/bootstrap

View on GitHub

Showing 15 of 114 total issues

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

/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
Severity: Major
Found in docs/dist/js/bootstrap.js - About 4 days to fix

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

    module.exports = function (grunt) {
      'use strict';
    
      // Force use of Unix newlines
      grunt.util.linefeed = '\n';
    Severity: Major
    Found in Gruntfile.js - About 2 days to fix

      Function onload has 396 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      window.onload = function () { // wait for load in a dumb way because B-0
        'use strict';
      
        var cw = '/*!\n' +
                 ' * Bootstrap v3.3.7 (http://getbootstrap.com)\n' +
      Severity: Major
      Found in docs/assets/js/src/customizer.js - About 1 day 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 js/tooltip.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 docs/dist/js/bootstrap.js - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

              if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
                throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
              }
            Severity: Major
            Found in docs/dist/js/bootstrap.js - About 40 mins to fix

              Avoid too many return statements within this function.
              Open

                  return new VarDocstring(match[1]);
              Severity: Major
              Found in grunt/bs-lessdoc-parser.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return false
                Severity: Major
                Found in docs/dist/js/bootstrap.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
                  Severity: Major
                  Found in js/affix.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return new SectionDocstring(match[1]);
                    Severity: Major
                    Found in grunt/bs-lessdoc-parser.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return undefined;
                      Severity: Major
                      Found in grunt/bs-lessdoc-parser.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
                        Severity: Major
                        Found in docs/dist/js/bootstrap.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return new Section(match[1], false);
                          Severity: Major
                          Found in grunt/bs-lessdoc-parser.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return new Variable(match[1], match[2]);
                            Severity: Major
                            Found in grunt/bs-lessdoc-parser.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return false
                              Severity: Major
                              Found in js/affix.js - About 30 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language