adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function getAllFiles has 29 lines of code (exceeds 25 allowed). Consider refactoring.
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") {
Severity: Minor
Found in src/project/ProjectModel.js - About 1 hr to fix

    Function _loadAll has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _loadAll(directory, config, entryPoint, processExtension) {
            var result = new $.Deferred();
    
            FileSystem.getDirectoryForPath(directory).getContents(function (err, contents) {
                if (!err) {
    Severity: Minor
    Found in src/utils/ExtensionLoader.js - About 1 hr to fix

      Function _getAllFilesCache has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ProjectModel.prototype._getAllFilesCache = function _getAllFilesCache(sort) {
              if (!this._allFilesCachePromise) {
                  var deferred = new $.Deferred(),
                      allFiles = [],
                      allFilesVisitor = function (entry) {
      Severity: Minor
      Found in src/project/ProjectModel.js - About 1 hr to fix

        Function loadStyleSheet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function loadStyleSheet(module, path) {
                var result = new $.Deferred();
        
                loadFile(module, path)
                    .done(function (content) {
        Severity: Minor
        Found in src/utils/ExtensionUtils.js - About 1 hr to fix

          Function refreshInterfaceCallback has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function refreshInterfaceCallback(spec) {
                      function makeCommandFunction(domainName, commandSpec) {
                          return function () {
                              var deferred = $.Deferred();
                              var parameters = Array.prototype.slice.call(arguments, 0);
          Severity: Minor
          Found in src/utils/NodeConnection.js - About 1 hr to fix

            Function _getTagInfoStartingFromAttrValue has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _getTagInfoStartingFromAttrValue(ctx) {
                    // Assume we in the attr value
                    // and validate that by going backwards
                    var attrInfo = _extractAttrVal(ctx),
                        attrVal = attrInfo.val,
            Severity: Minor
            Found in src/language/HTMLUtils.js - About 1 hr to fix

              Function _getOffsetsForFunction has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _getOffsetsForFunction(docEntries, functionName) {
                      // Filter for documents that contain the named function
                      var result              = new $.Deferred(),
                          matchedDocuments    = [],
                          rangeResults        = [];
              Severity: Minor
              Found in src/language/JSUtils.js - About 1 hr to fix

                Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    toggleClass: function( value, stateVal ) {
                        var type = typeof value;
                
                        if ( typeof stateVal === "boolean" && type === "string" ) {
                            return stateVal ? this.addClass( value ) : this.removeClass( value );
                Severity: Minor
                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                  Function removeBefore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  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;
                  Severity: Minor
                  Found in src/thirdparty/immutable.js - About 1 hr to fix

                    Function highlightMatch has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function highlightMatch(item, matchClass, rangeFilter) {
                            var label = item.label || item;
                            matchClass = matchClass || "quicksearch-namematch";
                    
                            var stringRanges = item.stringRanges;
                    Severity: Minor
                    Found in src/search/QuickOpen.js - About 1 hr to fix

                      Function exports has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      module.exports = function (grunt) {
                          var common      = {},
                              path        = require("path"),
                              _platform;
                      
                      
                      Severity: Minor
                      Found in tasks/lib/common.js - About 1 hr to fix

                        Function getNextPageofSearchResults has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function getNextPageofSearchResults() {
                                var searchDeferred = $.Deferred();
                                if (searchModel.allResultsAvailable) {
                                    return searchDeferred.resolve().promise();
                                }
                        Severity: Minor
                        Found in src/search/FindInFiles.js - About 1 hr to fix

                          Function makeResizable has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              function makeResizable(element, direction, position, minSize, collapsible, forceLeft, createdByWorkspaceManager, usePercentages, _attachToParent) {
                          Severity: Major
                          Found in src/utils/Resizer.js - About 1 hr to fix

                            Function _createContextInfo has 9 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                function _createContextInfo(token, tokenType, offset, keyName, valueName, parentKeyName, isArray, exclusionList, shouldReplace) {
                            Severity: Major
                            Found in src/language/JSONUtils.js - About 1 hr to fix

                              Function downloadRegistry has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function downloadRegistry() {
                                      if (pendingDownloadRegistry) {
                                          return pendingDownloadRegistry.promise();
                                      }
                              
                              
                              Severity: Minor
                              Found in src/extensibility/ExtensionManager.js - About 1 hr to fix

                                Function _calcHintListLocation has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    CodeHintList.prototype._calcHintListLocation = function () {
                                        var cursor      = this.editor._codeMirror.cursorCoords(),
                                            posTop      = cursor.bottom,
                                            posLeft     = cursor.left,
                                            textHeight  = this.editor.getTextHeight(),
                                Severity: Minor
                                Found in src/editor/CodeHintList.js - About 1 hr to fix

                                  Function parseDescriptor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          origDescriptor.split("-").forEach(function parseDescriptor(ele, i, arr) {
                                              if (_compareModifierString("ctrl", ele)) {
                                                  if (brackets.platform === "mac") {
                                                      hasMacCtrl = true;
                                                  } else {
                                  Severity: Minor
                                  Found in src/command/KeyBindingManager.js - About 1 hr to fix

                                    Function matchResults has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                var matchResults = $.map(hints, function (hint) {
                                                    var searchResult = matcher.match(hint.value, query);
                                                    if (searchResult) {
                                                        searchResult.value = hint.value;
                                                        searchResult.guess = hint.guess;
                                    Severity: Minor
                                    Found in src/JSUtils/Session.js - About 1 hr to fix

                                      Function _updateOption has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          Editor.prototype._updateOption = function (prefName) {
                                              var oldValue = this._currentOptions[prefName],
                                                  newValue = this._getOption(prefName);
                                      
                                              if (oldValue !== newValue) {
                                      Severity: Minor
                                      Found in src/editor/Editor.js - About 1 hr to fix

                                        Function _prepareServer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _prepareServer(doc) {
                                                var deferred = new $.Deferred(),
                                                    showBaseUrlPrompt = false;
                                        
                                                _server = LiveDevServerManager.getServer(doc.file.fullPath);
                                        Severity: Minor
                                        Found in src/LiveDevelopment/LiveDevMultiBrowser.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language