Showing 62 of 155 total issues
File bootstrap-table.js
has 2504 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @author zhixin wen <wenzhixin2010@gmail.com>
* version: 1.11.0
* https://github.com/wenzhixin/bootstrap-table/
*/
File bootstrap.js
has 1515 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
File bootstrap-select.js
has 1502 lines of code (exceeds 250 allowed). Consider refactoring. Open
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)
Function initBody
has 267 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initBody = function (fixedScroll) {
var that = this,
html = [],
data = this.getData();
Function initPagination
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initPagination = function () {
if (!this.options.pagination) {
this.$pagination.hide();
return;
} else {
Function keydown
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function (e) {
var $this = $(this),
$parent = $this.is('input') ? $this.parent().parent() : $this.parent(),
$items,
that = $parent.data('this'),
Function clickListener
has 158 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clickListener: function () {
var that = this,
$document = $(document);
this.$newElement.on('touchstart.dropdown', '.dropdown-menu', function (e) {
Function initToolbar
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initToolbar = function () {
var that = this,
html = [],
timeoutId = 0,
$keepOpen,
Function initHeader
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initHeader = function () {
var that = this,
visibleColumns = {},
html = [];
Function setSize
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setSize: function () {
this.findLis();
this.liHeight();
if (this.options.header) this.$menu.css('padding-top', 0);
Function createLi
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createLi: function () {
var that = this,
_li = [],
optID = 0,
titleOption = document.createElement('option'),
Function init
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function () {
var that = this,
id = this.$element.attr('id');
this.$element.addClass('bs-select-hidden');
Function initTable
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initTable = function () {
var that = this,
columns = [],
data = [];
Function liHeight
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
liHeight: function (refresh) {
if (!refresh && (this.options.size === false || this.sizeInfo)) return;
var newElement = document.createElement('div'),
menu = document.createElement('div'),
Function initServer
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initServer = function (silent, query, url) {
var that = this,
data = {},
params = {
searchText: this.searchText,
Function fitHeader
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.fitHeader = function () {
var that = this,
fixedBody,
scrollWidth,
focused,
Function liveSearchListener
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 () {
Consider simplifying this complex logical expression. Open
Open
if (column.checkbox || column.radio) {
type = column.checkbox ? 'checkbox' : type;
type = column.radio ? 'radio' : type;
text = [sprintf(that.options.cardView ?
Function articleInfo
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function articleInfo() {
var articleTitles = [];
// console.log('获取数据开始');
getURL.getPageContent('/', function (err, gres, next) {
Function show
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.' + this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)