Showing 1,485 of 3,294 total issues
Function ScriptAgent
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
define(function ScriptAgent(require, exports, module) {
"use strict";
var Inspector = require("LiveDevelopment/Inspector/Inspector");
var DOMAgent = require("LiveDevelopment/Agents/DOMAgent");
Function _createServer
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createServer(path, port, createCompleteCallback) {
var server,
app,
address,
pathKey = getPathKey(path);
Function _create
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
this.originalTitle = this.element.attr( "title" );
// #5742 - .attr() might return a DOMElement
if ( typeof this.originalTitle !== "string" ) {
this.originalTitle = "";
Function _generateMatchList
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _generateMatchList(query, str, originalQuery, originalStr, specials, startingSpecial) {
var result = [];
// used to keep track of which special character we're testing now
var specialsCounter = startingSpecial;
Function _render
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SearchResultsView.prototype._render = function () {
var searchItems, match, i, item, multiLine,
count = this._model.countFilesMatches(),
searchFiles = this._model.prioritizeOpenFile(this._initialFilePath),
lastIndex = this._getLastIndex(count.matches),
Function _applyUserKeyBindings
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _applyUserKeyBindings() {
var remappedCommands = [],
remappedKeys = [],
restrictedCommands = [],
restrictedKeys = [],
Function doEditorChange
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doEditorChange(session, document, previousDocument) {
var file = document.file,
path = file.fullPath,
dir = file.parentPath,
pr;
Function moveLine
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function moveLine(editor, direction) {
editor = editor || EditorManager.getFocusedEditor();
if (!editor) {
return;
}
Function getHints
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CssPropHints.prototype.getHints = function (implicitChar) {
this.cursor = this.editor.getCursorPos();
this.info = CSSUtils.getInfoAtPos(this.editor, this.cursor);
var needle = this.info.name,
File HTMLDOMDiff.js
has 298 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 _getUpdateInformation
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getUpdateInformation(force, dontCache, _versionInfoUrl) {
// Last time the versionInfoURL was fetched
var lastInfoURLFetchTime = PreferencesManager.getViewState("lastInfoURLFetchTime");
var result = new $.Deferred();
Function sliceFactory
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sliceFactory(iterable, begin, end, useKeys) {
var originalSize = iterable.size;
// Sanitize begin & end using this shorthand for ToInt32(argument)
// http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
File bootstrap-twipsy-mod.js
has 296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* ==========================================================
* bootstrap-twipsy.js v1.4.0
* http://twitter.github.com/bootstrap/javascript.html#twipsy
* Adapted from the original jQuery.tipsy by Jason Frame
* Adjusted for Brackets
Function displayErrorMessageAtCursor
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Editor.prototype.displayErrorMessageAtCursor = function (errorMsg) {
var arrowBelow, cursorPos, cursorCoord, popoverRect,
top, left, clip, arrowCenter, arrowLeft,
self = this,
POPOVER_MARGIN = 10,
Function imagePreviewProvider
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function imagePreviewProvider(editor, pos, token, line) {
var cm = editor._codeMirror;
// Check for image name
var urlRegEx = /url\(([^\)]*)\)/gi,
Function Deferred
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var doneList = jQuery.Callbacks( "once memory" ),
failList = jQuery.Callbacks( "once memory" ),
progressList = jQuery.Callbacks( "memory" ),
state = "pending",
Function watchPath
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function watchPath(path, ignored, _watcherMap) {
var ignoreMatcher = buildMatcher(ignored);
var closing = false;
Function _loadViewState
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _loadViewState(e) {
// file root is appended for each project
var panes,
promises = [],
context = { location : { scope: "user",
Function doSave
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doSave(docToSave, force) {
var result = new $.Deferred(),
file = docToSave.file;
function handleError(error) {
File grunt.js
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*jshint node: true */
module.exports = function( grunt ) {
var // modules
fs = require( "fs" ),