Showing 350 of 970 total issues
Function buildPath
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildPath : function (ctx, style) {
var pointList = style.pointList;
if (pointList.length < 2) {
// 少于2个点就不画了~
return;
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 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 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 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 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 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 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 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 increment
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
increment: function(incrementValue) {
var
total = module.total || false,
edgeValue,
startValue,
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 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 display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
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 determineTabs
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
determineTabs: function() {
var
$reference
;
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function hide
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide: function(callback) {
callback = $.isFunction(callback) ? callback : function(){};
module.debug('Hiding pop-up');
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
$popup