adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

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 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 _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 _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 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 DOMUpdater has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function DOMUpdater(previousDOM, editor, changeList) {
                        var text, startOffset = 0, startOffsetPos;
                
                        this.isIncremental = false;
                
                

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

                      LiveHTMLDocument.prototype._onChange = function (event, doc, change) {
                          // Make sure LiveHTML is turned on
                          if (!this._instrumentationEnabled) {
                              return;
                          }
                  Severity: Minor
                  Found in src/LiveDevelopment/MultiBrowserImpl/documents/LiveHTMLDocument.js - About 1 hr to fix

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

                        HTMLDocument.prototype._onChange = function (event, editor, change) {
                            // Make sure LiveHTML is turned on
                            if (!this._instrumentationEnabled) {
                                return;
                            }
                    Severity: Minor
                    Found in src/LiveDevelopment/Documents/HTMLDocument.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

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

                                getStylesheetText: function (msg) {
                                    var i,
                                        sheet,
                                        text = "";
                                    for (i = 0; i < window.document.styleSheets.length; i++) {

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

                                  function formatTypeDataForToken($hintObj, token) {
                          
                                      if (!hintDetailsEnabled) {
                                          return;
                                      }
                          Severity: Minor
                          Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 hr to fix

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

                                _mouseStop: function(event) {
                            
                                    //If we are using droppables, inform the manager about the drop
                                    var dropped = false;
                                    if ($.ui.ddmanager && !this.options.dropBehaviour)

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

                                      function expectReferences(referencesExpected) {
                                          var refPromise,
                                              results = null,
                                              complete = false;
                                          runs(function () {
                              Severity: Minor
                              Found in src/extensions/default/PhpTooling/unittests.js - About 1 hr to fix

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

                                $.effects.effect.highlight = function( o, done ) {
                                    var elem = $( this ),
                                        props = [ "backgroundImage", "backgroundColor", "opacity" ],
                                        mode = $.effects.setMode( elem, o.mode || "show" ),
                                        animation = {

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

                                      _initSource: function() {
                                          var array, url,
                                              that = this;
                                          if ( $.isArray(this.options.source) ) {
                                              array = this.options.source;

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

                                        values: function( index, newValue ) {
                                            var vals,
                                                newValues,
                                                i;
                                    
                                    

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

                                      $.effects.effect.transfer = function( o, done ) {
                                          var elem = $( this ),
                                              target = $( o.to ),
                                              targetFixed = target.css( "position" ) === "fixed",
                                              body = $("body"),

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

                                            function warning(m, t, a, b, c, d) {
                                                var ch, l, w;
                                                t = t || nexttoken;
                                                if (t.id === '(end)') {  // `~
                                                    t = token;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language