Showing 200 of 421 total issues
Function load
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
req.load = function (context, moduleName, url) {
var config = (context && context.config) || {},
node;
if (isBrowser) {
//In the browser so use a script tag
Function diffString
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diffString( o, n ) {
o = o.replace(/\s+$/, '');
n = n.replace(/\s+$/, '');
var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/) );
Function __chain_b
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.__chain_b = function () {
var b = this.b;
var n = b.length;
var b2j = this.b2j = {};
var populardict = {};
Function load
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function( name, req, load, config ) {
var path = req.toUrl( name );
var queryString = '';
if ( path.indexOf( '?' ) != -1 ) {
queryString = path.substr( path.indexOf( '?' ) );
Function configFromArray
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configFromArray (config) {
var i, date, input = [], currentDate, yearToUse;
if (config._d) {
return;
Function toString
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toString: function(format) {
var formatSet = !!format;
format = format || this._format;
var formattedString = false;
Function getStyle
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getStyle: function( uid, type ) {
var rel = this.relations[ uid ],
loc = this.locations[ uid ][ type ],
styles = {},
hdiff;
Function localRequire
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function localRequire(deps, callback, errback) {
var id, map, requireMod;
if (options.enableBuildCallback && callback && isFunction(callback)) {
callback.__requireJsBuild = true;
Function locate
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
locate: ( function() {
function locateSibling( rel, type ) {
var sib = rel.element[ type === CKEDITOR.LINEUTILS_BEFORE ? 'getPrevious' : 'getNext' ]();
// Return the middle point between siblings.
Function editorConfig
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CKEDITOR.editorConfig = function (config) {
config.allowedContent = true;
config.language = 'zh-cn';
//config.skin = 'minimalist';
config.pasteFilter = null;
Function onBlockWidgetDrag
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onBlockWidgetDrag( evt ) {
var finder = this.repository.finder,
locator = this.repository.locator,
liner = this.repository.liner,
editor = this.editor,
Function setupWidget
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupWidget( widget, widgetDef ) {
setupWrapper( widget );
setupParts( widget );
setupEditables( widget );
setupMask( widget );
Function spectrum
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.spectrum = function (opts, extra) {
if (typeof opts == "string") {
var returnValue = this;
Function iterator
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iterator: function( element ) {
var upcast, upcasted,
data,
i,
upcastsLength,
Function updateHelperLocations
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateHelperLocations() {
var s = currentSaturation;
var v = currentValue;
if(allowEmpty && isEmpty) {
Function completeLoad
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
completeLoad: function (moduleName) {
var found, args, mod,
shim = getOwn(config.shim, moduleName) || {},
shExports = shim.exports;
Function init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (config) {
var Grid = Ractive.extend({
isolated: false,
template: hrTemplate,
data: {
Function walk
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk( object, filter, indent, currentIndent, seen ) {
var nextIndent = currentIndent + indent;
object = filter ? filter( object ) : object;
switch ( typeof object ) {
case 'string':
Function diffString2
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diffString2( o, n ) {
o = o.replace(/\s+$/, '');
n = n.replace(/\s+$/, '');
var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/) );
Consider simplifying this complex logical expression. Open
Open
if ((readable && ! bestIsReadable) ||
(readable && bestIsReadable && score > bestScore) ||
((! readable) && (! bestIsReadable) && score > bestScore)) {
bestIsReadable = readable;
bestScore = score;