Showing 350 of 970 total issues
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 form
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
form: function(event) {
var
allValid = true,
apiRequest
;
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 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 display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function format
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function format(formatter, value) {
if (formatter == 'week'
|| formatter == 'month'
|| formatter == 'quarter'
|| formatter == 'half-year'
Function look4sections
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function look4sections(expMin, expMax) {
var section;
var tmpStep, tmpMin, tmpMax;
var reference = [];
for (var i = custSecs.length; i--;) { // 逐步减小段数,步长就会渐大
Function coreCalc
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function coreCalc(min, max, section) {
var step;
var secs = section || +custSecs.slice(-1);
var expStep = getCeil((max - min) / secs, custSteps); // 这是可能的最小步长,以它的量级作为后续计算的基准量级,以保证整数计算特性
var expSpan = expNum(max - min); // 2 位精度的最值跨度,过高的精度意味着有效数位更多
Function decode
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decode(json) {
if (!json.UTF8Encoding) {
return json;
}
var features = json.features;
Function settings
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
settings: function() {
var
runSettings
;
runSettings = settings.beforeSend.call($module, settings);
Function sum
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sum : 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 prod
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prod : 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 getPiece
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getPiece(axis, offset) {
var range = ranges[axis];
var stride = strides[axis];
if (axis < len-1) {
if (range[2] > 0) {
Function integer
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
integer: function(value, range) {
var
intRegExp = /^\-?\d+$/,
min,
max,
Function keydown
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function(event) {
var
$field = $(this),
key = event.which,
keyCode = {
Function getAutoFormatter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAutoFormatter(min, max, splitNumber) {
splitNumber = splitNumber > 1 ? splitNumber : 2;
// 最优解
var curValue;
var totalGap;
Function cumsum
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cumsum : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
var idx = offset + i;
Function cumprod
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cumprod : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
var idx = offset + i;