adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function checkUpdateStatus has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function checkUpdateStatus() {
        var filesToCache = ['.logs'],
            downloadCompleted = updateJsonHandler.get("downloadCompleted"),
            updateInitiatedInPrevSession = updateJsonHandler.get("updateInitiatedInPrevSession");

Severity: Minor
Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

    Function lintOneFile has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function lintOneFile(text, fullPath) {
            // If a line contains only whitespace (here spaces or tabs), remove the whitespace
            text = text.replace(/^[ \t]+$/gm, "");
    
            var options = prefs.get("options");
    Severity: Minor
    Found in src/extensions/default/JSLint/main.js - About 1 hr to fix

      Function _attachments has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _attachments: function(input, inst) {
              var appendText = this._get(inst, 'appendText');
              var isRTL = this._get(inst, 'isRTL');
              if (inst.append)
                  inst.append.remove();

        Function pulsate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.effects.effect.pulsate = function( o, done ) {
            var elem = $( this ),
                mode = $.effects.setMode( elem, o.mode || "show" ),
                show = mode === "show",
                hide = mode === "hide",

          Function assignop has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function assignop(s, f) {
                  symbol(s, 20).exps = true;
                  return infix(s, function (left, that) {
                      var l;
                      that.left = left;

            Function _resetButton has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _resetButton: function() {
                    if ( this.type === "input" ) {
                        if ( this.options.label ) {
                            this.element.val( this.options.label );
                        }

              Function _open has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _open: function( event, target, content ) {
                      if ( !content ) {
                          return;
                      }
              
              

                Function close has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    close: function( event ) {
                        var that = this,
                            maxZ, thisZ;
                
                        if ( !this._isOpen ) {

                  Function _toggle has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _toggle: function( data ) {
                          var toShow = data.newPanel,
                              toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
                  
                          // handle activating a panel during the animation for another activation

                    Function visit has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        FileSystemEntry.prototype.visit = function (visitor, options, callback) {
                            if (typeof options === "function") {
                                callback = options;
                                options = {};
                            } else {
                    Severity: Minor
                    Found in src/filesystem/FileSystemEntry.js - About 1 hr to fix

                      Function _handleSelectionKeydown has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          ColorEditor.prototype._handleSelectionKeydown = function (event) {
                              var hsv = {},
                                  step = 1.5,
                                  xOffset,
                                  yOffset,
                      Severity: Minor
                      Found in src/extensions/default/InlineColorEditor/ColorEditor.js - About 1 hr to fix

                        Function extractToVariable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function extractToVariable(ast, start, end, text, scopes) {
                                var doc                   = session.editor.document,
                                    editor = EditorManager.getActiveEditor(),
                                    parentExpn            = RefactoringUtils.getExpression(ast, start, end, doc.getText()),
                                    expns                 = [],
                        Severity: Minor
                        Found in src/extensions/default/JavaScriptRefactoring/ExtractToVariable.js - About 1 hr to fix

                          Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                              var i = 0,
                                  len = elems.length,
                                  bulk = key == null;
                          
                          
                          Severity: Minor
                          Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                            Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function showHide( elements, show ) {
                                var display, elem, hidden,
                                    values = [],
                                    index = 0,
                                    length = elements.length;
                            Severity: Minor
                            Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                              Function _extractAttrVal has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function _extractAttrVal(ctx) {
                                      var attrValue = ctx.token.string,
                                          startChar = attrValue.charAt(0),
                                          endChar = attrValue.charAt(attrValue.length - 1),
                                          offset = TokenUtils.offsetInToken(ctx),
                              Severity: Minor
                              Found in src/language/HTMLUtils.js - About 1 hr to fix

                                Function _getSucceedingPropValues has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _getSucceedingPropValues(ctx, currentValue) {
                                        var lastValue = currentValue,
                                            propValues = [];
                                
                                        while (ctx.token.string !== ";" && ctx.token.string !== "}" && TokenUtils.moveNextToken(ctx)) {
                                Severity: Minor
                                Found in src/language/CSSUtils.js - About 1 hr to fix

                                  Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      dispatch: function( event ) {
                                  
                                          // Make a writable jQuery.Event from the native event object
                                          event = jQuery.event.fix( event );
                                  
                                  
                                  Severity: Minor
                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                    Function hashBytes has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        hashBytes: function(data, len, seed) {
                                            var c1 = 0xcc9e2d51, c2 = 0x1b873593;
                                    
                                            var h1 = seed;
                                            var roundedEnd = len & ~0x3;
                                    Severity: Minor
                                    Found in src/thirdparty/murmurhash3_gc.js - About 1 hr to fix

                                      Function _openReferencesPanel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _openReferencesPanel() {
                                              var editor = EditorManager.getActiveEditor(),
                                                  pos = editor ? editor.getCursorPos() : null,
                                                  referencesPromise,
                                                  result = new $.Deferred(),
                                      Severity: Minor
                                      Found in src/features/FindReferencesManager.js - About 1 hr to fix

                                        Function _handleNodeRuntime has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _handleNodeRuntime(serverOptions) {
                                                function _getArguments(sOptions) {
                                                    var args = [];
                                        
                                                    if (sOptions.args) {
                                        Severity: Minor
                                        Found in src/languageTools/LanguageClient/ServerUtils.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language