Showing 1,485 of 3,294 total issues
File DocumentCommandHandlers.js
has 1116 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File jquery.ui.tabs.js
has 1060 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery UI Tabs @VERSION
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
Function DOMNodeModule
has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring. Open
Open
define(function DOMNodeModule(require, exports, module) {
"use strict";
var DOMHelpers = require("LiveDevelopment/Agents/DOMHelpers");
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File PreferencesBase.js
has 998 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function token
has 491 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function () {
var b, c, captures, d, depth, high, i, l, low, q, t, isLiteral, isInRange;
function match(x) {
var r = x.exec(s), r1;
File ScopeManager.js
has 936 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function nextToken
has 453 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tokenizer.prototype.nextToken = function () {
this._token = null;
if (this._nextToken) {
var result = this._nextToken;
File LiveDevelopment.js
has 905 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File WorkingSetView.js
has 890 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File MainViewManager.js
has 884 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function _makeDraggable
has 426 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _makeDraggable($el) {
var interval,
sourceFile = $el.data(_FILE_KEY);
// turn off the "hover-scroll"
Function extractAllSelectors
has 414 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extractAllSelectors(text, documentMode) {
var state, lines, lineCount,
token, style, stream, line,
selectors = [],
mode = CodeMirror.getMode({indentUnit: 2}, documentMode || "css"),
File RemoteFunctions.js
has 791 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File Menus.js
has 786 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File FileTreeView.js
has 783 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File KeyBindingManager.js
has 776 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File ProjectManager.js
has 762 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function DOMNodeModule
has 353 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
define(function DOMNodeModule(require, exports, module) {
"use strict";
var DOMHelpers = require("LiveDevelopment/Agents/DOMHelpers");
Function TernModule
has 352 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TernModule() {
var ternPromise = null,
addFilesPromise = null,
rootTernDir = null,
projectRoot = null,
File strings.js
has 746 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),