adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function ScriptAgent has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

define(function ScriptAgent(require, exports, module) {
    "use strict";

    var Inspector = require("LiveDevelopment/Inspector/Inspector");
    var DOMAgent = require("LiveDevelopment/Agents/DOMAgent");
Severity: Major
Found in src/LiveDevelopment/Agents/ScriptAgent.js - About 3 hrs to fix

    Function _createServer has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function _createServer(path, port, createCompleteCallback) {
        var server,
            app,
            address,
            pathKey = getPathKey(path);
    Severity: Major
    Found in src/extensions/default/StaticServer/node/StaticServerDomain.js - About 3 hrs to fix

      Function _create has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      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

            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;
        Severity: Major
        Found in src/utils/StringMatch.js - About 3 hrs to fix

          Function _render has 80 lines of code (exceeds 25 allowed). Consider refactoring.
          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),
          Severity: Major
          Found in src/search/SearchResultsView.js - About 3 hrs to fix

            Function _applyUserKeyBindings has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _applyUserKeyBindings() {
                    var remappedCommands   = [],
                        remappedKeys       = [],
                        restrictedCommands = [],
                        restrictedKeys     = [],
            Severity: Major
            Found in src/command/KeyBindingManager.js - About 3 hrs to fix

              Function doEditorChange has 79 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function doEditorChange(session, document, previousDocument) {
                          var file        = document.file,
                              path        = file.fullPath,
                              dir         = file.parentPath,
                              pr;
              Severity: Major
              Found in src/JSUtils/ScopeManager.js - About 3 hrs to fix

                Function moveLine has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function moveLine(editor, direction) {
                        editor = editor || EditorManager.getFocusedEditor();
                        if (!editor) {
                            return;
                        }
                Severity: Major
                Found in src/editor/EditorCommandHandlers.js - About 3 hrs to fix

                  Function getHints has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      CssPropHints.prototype.getHints = function (implicitChar) {
                          this.cursor = this.editor.getCursorPos();
                          this.info = CSSUtils.getInfoAtPos(this.editor, this.cursor);
                  
                          var needle = this.info.name,
                  Severity: Major
                  Found in src/extensions/default/CSSCodeHints/main.js - About 3 hrs to fix

                    File HTMLDOMDiff.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
                    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"),
                    Severity: Minor
                    Found in src/language/HTMLDOMDiff.js - About 3 hrs to fix

                      Function _getUpdateInformation has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _getUpdateInformation(force, dontCache, _versionInfoUrl) {
                              // Last time the versionInfoURL was fetched
                              var lastInfoURLFetchTime = PreferencesManager.getViewState("lastInfoURLFetchTime");
                      
                              var result = new $.Deferred();
                      Severity: Major
                      Found in src/utils/UpdateNotification.js - About 3 hrs to fix

                        Function sliceFactory has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                        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
                        Severity: Major
                        Found in src/thirdparty/immutable.js - About 3 hrs to fix

                          File bootstrap-twipsy-mod.js has 296 lines of code (exceeds 250 allowed). Consider refactoring.
                          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
                          Severity: Minor
                          Found in src/widgets/bootstrap-twipsy-mod.js - About 3 hrs to fix

                            Function displayErrorMessageAtCursor has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Editor.prototype.displayErrorMessageAtCursor = function (errorMsg) {
                                    var arrowBelow, cursorPos, cursorCoord, popoverRect,
                                        top, left, clip, arrowCenter, arrowLeft,
                                        self = this,
                                        POPOVER_MARGIN = 10,
                            Severity: Major
                            Found in src/editor/Editor.js - About 3 hrs to fix

                              Function imagePreviewProvider has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function imagePreviewProvider(editor, pos, token, line) {
                                      var cm = editor._codeMirror;
                              
                                      // Check for image name
                                      var urlRegEx = /url\(([^\)]*)\)/gi,
                              Severity: Major
                              Found in src/extensions/default/QuickView/main.js - About 3 hrs to fix

                                Function Deferred has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                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

                                  function watchPath(path, ignored, _watcherMap) {
                                  
                                      var ignoreMatcher = buildMatcher(ignored);
                                      var closing = false;
                                  
                                  
                                  Severity: Major
                                  Found in src/filesystem/impls/appshell/node/CSharpWatcher.js - About 3 hrs to fix

                                    Function _loadViewState has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _loadViewState(e) {
                                            // file root is appended for each project
                                            var panes,
                                                promises = [],
                                                context = { location : { scope: "user",
                                    Severity: Major
                                    Found in src/view/MainViewManager.js - About 3 hrs to fix

                                      Function doSave has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function doSave(docToSave, force) {
                                              var result = new $.Deferred(),
                                                  file = docToSave.file;
                                      
                                              function handleError(error) {
                                      Severity: Major
                                      Found in src/document/DocumentCommandHandlers.js - About 3 hrs to fix

                                        File grunt.js has 294 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /*jshint node: true */
                                        module.exports = function( grunt ) {
                                        
                                        var // modules
                                            fs = require( "fs" ),
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language