adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Avoid deeply nested control flow statements.
Open

                        if (pn.id !== "(string)" && pn.id !== "(number)" &&
                            pn.id !== "(regexp)" && pn.identifier !== true &&
                            pn.id !== "}") {
                            break;
                        }

    Avoid deeply nested control flow statements.
    Open

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

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

      function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
              dataType /* internal */, inspected /* internal */ ) {

        Avoid deeply nested control flow statements.
        Open

                                if ( name in thisCache ) {
                                    name = [ name ];
                                } else {
                                    name = name.split( " " );
                                }

          Avoid deeply nested control flow statements.
          Open

                              if ( !match ) {
                                  anyFound = found = true;
          
                              } else if ( match === true ) {
                                  continue;

            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

                                      if ( name.indexOf( "data-" ) === 0 ) {
                                          name = jQuery.camelCase( name.substring(5) );
              
                                          dataAttr( elem, name, data[ name ] );
                                      }

                Avoid deeply nested control flow statements.
                Open

                                    if ( !anyFound ) {
                                        return [];
                                    }

                  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 (!tagData.tags[tagInfo.tagName] && !(attributeData[tagInfo.attrName] || tagSpecificOptions)) {
                                        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 ( firing ) {
                                                          if ( i <= firingLength ) {
                                                              firingLength--;
                                                              if ( i <= firingIndex ) {
                                                                  firingIndex--;

                        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

                                          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 ( !inplace ) {
                                                    curLoop = result;
                                                }

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( ret[r] === ret[n] ) {
                                                          ret.splice(n--, 1);
                                                          break;
                                                      }

                                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

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

                                    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 ( jQuery.isPlainObject( context ) ) {
                                                                  selector = [ document.createElement( ret[1] ) ];
                                                                  jQuery.fn.attr.call( selector, context, true );
                                      
                                                              } else {

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( !old ) {
                                                                    oldContext.removeAttribute( "id" );
                                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language