Showing 1,485 of 3,294 total issues
Function getAllFiles
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ProjectModel.prototype.getAllFiles = function getAllFiles(filter, additionalFiles, sort) {
// The filter and includeWorkingSet params are both optional.
// Handle the case where filter is omitted but includeWorkingSet is
// specified.
if (additionalFiles === undefined && typeof (filter) !== "function") {
Function _loadAll
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _loadAll(directory, config, entryPoint, processExtension) {
var result = new $.Deferred();
FileSystem.getDirectoryForPath(directory).getContents(function (err, contents) {
if (!err) {
Function _getAllFilesCache
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ProjectModel.prototype._getAllFilesCache = function _getAllFilesCache(sort) {
if (!this._allFilesCachePromise) {
var deferred = new $.Deferred(),
allFiles = [],
allFilesVisitor = function (entry) {
Function loadStyleSheet
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadStyleSheet(module, path) {
var result = new $.Deferred();
loadFile(module, path)
.done(function (content) {
Function refreshInterfaceCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function refreshInterfaceCallback(spec) {
function makeCommandFunction(domainName, commandSpec) {
return function () {
var deferred = $.Deferred();
var parameters = Array.prototype.slice.call(arguments, 0);
Function _getTagInfoStartingFromAttrValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getTagInfoStartingFromAttrValue(ctx) {
// Assume we in the attr value
// and validate that by going backwards
var attrInfo = _extractAttrVal(ctx),
attrVal = attrInfo.val,
Function _getOffsetsForFunction
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getOffsetsForFunction(docEntries, functionName) {
// Filter for documents that contain the named function
var result = new $.Deferred(),
matchedDocuments = [],
rangeResults = [];
Function toggleClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value;
if ( typeof stateVal === "boolean" && type === "string" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
Function removeBefore
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
VNode.prototype.removeBefore = function(ownerID, level, index) {
if (index === level ? 1 << level : 0 || this.array.length === 0) {
return this;
}
var originIndex = (index >>> level) & MASK;
Function highlightMatch
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function highlightMatch(item, matchClass, rangeFilter) {
var label = item.label || item;
matchClass = matchClass || "quicksearch-namematch";
var stringRanges = item.stringRanges;
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
var common = {},
path = require("path"),
_platform;
Function getNextPageofSearchResults
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNextPageofSearchResults() {
var searchDeferred = $.Deferred();
if (searchModel.allResultsAvailable) {
return searchDeferred.resolve().promise();
}
Function makeResizable
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function makeResizable(element, direction, position, minSize, collapsible, forceLeft, createdByWorkspaceManager, usePercentages, _attachToParent) {
Function _createContextInfo
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _createContextInfo(token, tokenType, offset, keyName, valueName, parentKeyName, isArray, exclusionList, shouldReplace) {
Function downloadRegistry
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function downloadRegistry() {
if (pendingDownloadRegistry) {
return pendingDownloadRegistry.promise();
}
Function _calcHintListLocation
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CodeHintList.prototype._calcHintListLocation = function () {
var cursor = this.editor._codeMirror.cursorCoords(),
posTop = cursor.bottom,
posLeft = cursor.left,
textHeight = this.editor.getTextHeight(),
Function parseDescriptor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
origDescriptor.split("-").forEach(function parseDescriptor(ele, i, arr) {
if (_compareModifierString("ctrl", ele)) {
if (brackets.platform === "mac") {
hasMacCtrl = true;
} else {
Function matchResults
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var matchResults = $.map(hints, function (hint) {
var searchResult = matcher.match(hint.value, query);
if (searchResult) {
searchResult.value = hint.value;
searchResult.guess = hint.guess;
Function _updateOption
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Editor.prototype._updateOption = function (prefName) {
var oldValue = this._currentOptions[prefName],
newValue = this._getOption(prefName);
if (oldValue !== newValue) {
Function _prepareServer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _prepareServer(doc) {
var deferred = new $.Deferred(),
showBaseUrlPrompt = false;
_server = LiveDevServerManager.getServer(doc.file.fullPath);