adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Avoid deeply nested control flow statements.
Open

                    if ( !isXML ) {
                        elem[ expando ] = doneName;
                        elem.sizset = i;
                    }

    Avoid deeply nested control flow statements.
    Open

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

      Avoid deeply nested control flow statements.
      Open

                              if ( selMatch[ sel ] === undefined ) {
                                  selMatch[ sel ] = (
                                      handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
                                  );
                              }

        Avoid deeply nested control flow statements.
        Open

                            for ( i = 0; (item = curLoop[i]) != null; i++ ) {
                                if ( item ) {
                                    found = filter( item, match, i, curLoop );
                                    pass = not ^ found;
        
        

          Avoid deeply nested control flow statements.
          Open

                                  if ( !relativeHierarchySelector || hasParent ) {
                                      return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
                                  }

            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 ( special[ type ] ) {
                                          jQuery.event.remove( elem, type );
              
                                      // This is a shortcut to avoid jQuery.event.remove's overhead
                                      } else {

                Avoid deeply nested control flow statements.
                Open

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

                  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

                                            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 ( selMatch[ sel ] ) {
                                                  matches.push( handleObj );
                                              }

                        Avoid deeply nested control flow statements.
                        Open

                                                    if ( !xhrCallbacks ) {
                                                        xhrCallbacks = {};
                                                        jQuery( window ).unload( xhrOnUnloadAbort );
                                                    }

                          Avoid deeply nested control flow statements.
                          Open

                                          if (!isMultiple && /\s+/.test(tagInfo.token.string)) {
                                              return null;
                                          }
                          Severity: Major
                          Found in src/extensions/default/SVGCodeHints/main.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 ( flags.unique ) {
                                                                  break;
                                                              }

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( ret === false ) {
                                                            event.preventDefault();
                                                            event.stopPropagation();
                                                        }

                                  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 (match) {
                                                                return match;
                                                            }
                                    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++ ) {
                                                                  className = className.replace(" " + classNames[ c ] + " ", " ");
                                                              }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( relativeHierarchySelector && hasParent ) {
                                                                context = context.parentNode;
                                                            }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language