aimer1124/JianshuSpider

View on GitHub

Showing 62 of 155 total issues

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

/**
 * @author zhixin wen <wenzhixin2010@gmail.com>
 * version: 1.11.0
 * https://github.com/wenzhixin/bootstrap-table/
 */
Severity: Major
Found in public/js/bootstrap-table.js - About 1 wk to fix

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

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

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

      /*!
       * Bootstrap-select v1.11.2 (http://silviomoreto.github.io/bootstrap-select)
       *
       * Copyright 2013-2016 bootstrap-select
       * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
      Severity: Major
      Found in public/js/bootstrap-select.js - About 4 days to fix

        Function initBody has 267 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            BootstrapTable.prototype.initBody = function (fixedScroll) {
                var that = this,
                    html = [],
                    data = this.getData();
        
        
        Severity: Major
        Found in public/js/bootstrap-table.js - About 1 day to fix

          Function initPagination has 191 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              BootstrapTable.prototype.initPagination = function () {
                  if (!this.options.pagination) {
                      this.$pagination.hide();
                      return;
                  } else {
          Severity: Major
          Found in public/js/bootstrap-table.js - About 7 hrs to fix

            Function keydown has 183 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                keydown: function (e) {
                  var $this = $(this),
                      $parent = $this.is('input') ? $this.parent().parent() : $this.parent(),
                      $items,
                      that = $parent.data('this'),
            Severity: Major
            Found in public/js/bootstrap-select.js - About 7 hrs to fix

              Function clickListener has 158 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  clickListener: function () {
                    var that = this,
                        $document = $(document);
              
                    this.$newElement.on('touchstart.dropdown', '.dropdown-menu', function (e) {
              Severity: Major
              Found in public/js/bootstrap-select.js - About 6 hrs to fix

                Function initToolbar has 140 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    BootstrapTable.prototype.initToolbar = function () {
                        var that = this,
                            html = [],
                            timeoutId = 0,
                            $keepOpen,
                Severity: Major
                Found in public/js/bootstrap-table.js - About 5 hrs to fix

                  Function initHeader has 134 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      BootstrapTable.prototype.initHeader = function () {
                          var that = this,
                              visibleColumns = {},
                              html = [];
                  
                  
                  Severity: Major
                  Found in public/js/bootstrap-table.js - About 5 hrs to fix

                    Function setSize has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        setSize: function () {
                          this.findLis();
                          this.liHeight();
                    
                          if (this.options.header) this.$menu.css('padding-top', 0);
                    Severity: Major
                    Found in public/js/bootstrap-select.js - About 4 hrs to fix

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

                          createLi: function () {
                            var that = this,
                                _li = [],
                                optID = 0,
                                titleOption = document.createElement('option'),
                      Severity: Major
                      Found in public/js/bootstrap-select.js - About 4 hrs to fix

                        Function init has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            init: function () {
                              var that = this,
                                  id = this.$element.attr('id');
                        
                              this.$element.addClass('bs-select-hidden');
                        Severity: Major
                        Found in public/js/bootstrap-select.js - About 2 hrs to fix

                          Function initTable has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              BootstrapTable.prototype.initTable = function () {
                                  var that = this,
                                      columns = [],
                                      data = [];
                          
                          
                          Severity: Major
                          Found in public/js/bootstrap-table.js - About 2 hrs to fix

                            Function liHeight has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                liHeight: function (refresh) {
                                  if (!refresh && (this.options.size === false || this.sizeInfo)) return;
                            
                                  var newElement = document.createElement('div'),
                                      menu = document.createElement('div'),
                            Severity: Major
                            Found in public/js/bootstrap-select.js - About 2 hrs to fix

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

                                  BootstrapTable.prototype.initServer = function (silent, query, url) {
                                      var that = this,
                                          data = {},
                                          params = {
                                              searchText: this.searchText,
                              Severity: Major
                              Found in public/js/bootstrap-table.js - About 2 hrs to fix

                                Function fitHeader has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    BootstrapTable.prototype.fitHeader = function () {
                                        var that = this,
                                            fixedBody,
                                            scrollWidth,
                                            focused,
                                Severity: Major
                                Found in public/js/bootstrap-table.js - About 2 hrs to fix

                                  Function liveSearchListener has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      liveSearchListener: function () {
                                        var that = this,
                                            $no_results = $('<li class="no-results"></li>');
                                  
                                        this.$button.on('click.dropdown.data-api touchstart.dropdown.data-api', function () {
                                  Severity: Major
                                  Found in public/js/bootstrap-select.js - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if (column.checkbox || column.radio) {
                                                        type = column.checkbox ? 'checkbox' : type;
                                                        type = column.radio ? 'radio' : type;
                                    
                                                        text = [sprintf(that.options.cardView ?
                                    Severity: Critical
                                    Found in public/js/bootstrap-table.js - About 2 hrs to fix

                                      Function articleInfo has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function articleInfo() {
                                      
                                          var articleTitles = [];
                                          // console.log('获取数据开始');
                                          getURL.getPageContent('/', function (err, gres, next) {
                                      Severity: Major
                                      Found in util/syncData.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 public/js/bootstrap.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language