adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Avoid deeply nested control flow statements.
Open

                    if ( typeof cur !== "string" ) {
                        if ( elem === cur ) {
                            match = true;
                            break;
                        }

    Avoid deeply nested control flow statements.
    Open

                    if (tagSpecificOptions) {
                        options = tagSpecificOptions.attribOptions;
                        isMultiple = tagSpecificOptions.multiple;
                    } else if (attributeData[tagInfo.attrName]) {
                        options = attributeData[tagInfo.attrName].attribOptions;
    Severity: Major
    Found in src/extensions/default/SVGCodeHints/main.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if ( selMatch[ sel ] ) {
                                  matches.push( handleObj );
                              }

        Avoid deeply nested control flow statements.
        Open

                                if ( jQuery.isPlainObject( context ) ) {
                                    selector = [ document.createElement( ret[1] ) ];
                                    jQuery.fn.attr.call( selector, context, true );
        
                                } else {

          Avoid deeply nested control flow statements.
          Open

                                  if ( elem.id !== match[2] ) {
                                      return rootjQuery.find( selector );
                                  }

            Avoid deeply nested control flow statements.
            Open

                                    if ( elem && elem.parentNode ) {
                                        // Handle the case where IE and Opera return items
                                        // by name instead of ID
                                        if ( elem.id === match[3] ) {
                                            return makeArray( [ elem ], extra );

              Avoid deeply nested control flow statements.
              Open

                                      if ( safeChildNodes.length > 0 ) {
                                          remove = safeChildNodes[ safeChildNodes.length - 1 ];
              
                                          if ( remove && remove.parentNode ) {
                                              remove.parentNode.removeChild( remove );

                Avoid deeply nested control flow statements.
                Open

                                                    if ( xhr.readyState !== 4 ) {
                                                        xhr.abort();
                                                    }

                  Function showOpenDialog has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      FileSystem.prototype.showOpenDialog = function (allowMultipleSelection,
                                              chooseDirectories,
                                              title,
                                              initialPath,
                                              fileTypes,
                  Severity: Minor
                  Found in src/filesystem/FileSystem.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if (classNode) {
                                                // Class Declaration found add it to scopes
                                                var temp = curScope.prev;
                                                var newScope = {};
                                                newScope.isClass = true;
                    Severity: Major
                    Found in src/extensions/default/JavaScriptRefactoring/RefactoringUtils.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if (hints instanceof Array) {
                                              // If we got synchronous hints, check if we have something we'll actually use
                                              var i, foundPrefix = false;
                                              for (i = 0; i < hints.length; i++) {
                                                  if (hints[i].indexOf(query) === 0) {
                      Severity: Major
                      Found in src/extensions/default/HTMLCodeHints/main.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        } else if ( copy !== undefined ) {
                                            target[ name ] = copy;
                                        }

                          Avoid deeply nested control flow statements.
                          Open

                                                          if ( firing ) {
                                                              if ( i <= firingLength ) {
                                                                  firingLength--;
                                                                  if ( i <= firingIndex ) {
                                                                      firingIndex--;

                            Function analyzeCode has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                function analyzeCode(text, scopes, srcScope, destScope, start, end) {
                            Severity: Minor
                            Found in src/extensions/default/JavaScriptRefactoring/ExtractToFunction.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if ( copyIsArray ) {
                                                      copyIsArray = false;
                                                      clone = src && jQuery.isArray(src) ? src : [];
                              
                                                  } else {

                                Avoid deeply nested control flow statements.
                                Open

                                                        if (_prefType !== _initialType) {
                                                            _prefType = _initialType;
                                                        }
                                Severity: Major
                                Found in src/extensions/default/DebugCommands/main.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          for ( j = tbody.length - 1; j >= 0 ; --j ) {
                                                              if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                  tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                              }
                                                          }

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if (tagInfo.exclusionList.indexOf(option) === -1) {
                                                            var match = StringMatch.stringMatch(option.text || option, query, stringMatcherOptions);
                                                            if (match) {
                                                                if (option.color) {
                                                                    match.color = option.color;
                                    Severity: Major
                                    Found in src/extensions/default/SVGCodeHints/main.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                  if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
                                                                      setClass += classNames[ c ] + " ";
                                                                  }
                                                              }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if ( !xhrCallbacks ) {
                                                                        xhrCallbacks = {};
                                                                        jQuery( window ).unload( xhrOnUnloadAbort );
                                                                    }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language