Showing 350 of 970 total issues
Function animate
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
animate: function(overrideSettings) {
settings = overrideSettings || settings;
if(!module.is.supported()) {
module.error(error.support);
return false;
Function kwargs
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function kwargs(func, defaults) {
/*jshint maxlen : 200*/
var removeComments = new RegExp('(\\/\\*[\\w\\\'\\,\\(\\)\\s\\r\\n\\*]*\\*\\/)|(\\/\\/[\\w\\s\\\'][^\\n\\r]*$)|(<![\\-\\-\\s\\w\\>\\/]*>)', 'gim');
var removeWhitespc = new RegExp('\\s+', 'gim');
var matchSignature = new RegExp('function.*?\\((.*?)\\)', 'i');
Function _withPreprocess1
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_withPreprocess1 : function (axis, out, funcWithAxis, funcFlatten) {
var source = this._array;
if (!this._size) {
return;
}
Function object
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
object: function(searchTerm, source) {
var
results = [],
fullTextResults = [],
searchFields = $.isArray(settings.searchFields)
Function elementCalculations
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
elementCalculations: function() {
var
screen = module.get.screenCalculations(),
element = module.get.elementPosition()
;
Function text
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function text(zr, oldShape, newShape, duration, easing) {
if (!oldShape) { // add
oldShape = {
style : {
x : newShape.style.textAlign == 'left'
Function mean
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mean : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
var cursor = 0;
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
Function html
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
html: function(source, id, url) {
module.debug('Generating embed html');
var
html
;
Function generateResults
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateResults: function(response) {
module.debug('Generating html from response', response);
var
template = settings.templates[settings.type],
isProperObject = ($.isPlainObject(response.results) && !$.isEmptyObject(response.results)),
Function clear
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clear: function() {
$field
.each(function () {
var
$field = $(this),
Function imageLoad
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
imageLoad: function() {
var
$images = $module.find('img'),
imageCount = $images.length,
index = imageCount,
Function increment
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
increment: function(incrementValue) {
var
total = module.total || false,
edgeValue,
startValue,
Function show
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function(callback) {
callback = $.isFunction(callback) ? callback : function(){};
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
module.set.visible();
$popup
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function address
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.address = function(fn) {
$(this).each(function(index) {
if (!$(this).data('address')) {
$(this).on('click', function(e) {
if (e.shiftKey || e.ctrlKey || e.metaKey || e.which == 2) {
Function smartSteps
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smartSteps(min, max, section, opts) {
// 拿公共变量来接收 opts.steps 这个参数,就不用带着参数层层传递了,注意在函数的最终出口处释放这个值
custOpts = opts || {};
custSteps = custOpts.steps || mySteps;
custSecs = custOpts.secs || mySections;
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function setting
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setting: function(setting, value, modules, modifyExisting) {
modules = (typeof modules === 'string')
? (modules === 'all')
? settings.modules
: [modules]
Function initialize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function() {
module.verbose('Initializing module');
var
prompt = $prompt[0],
inputEvent = (prompt !== undefined && prompt.oninput !== undefined)
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;