adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    setOffset: function( elem, options, i ) {
        var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
            position = jQuery.css( elem, "position" ),
            curElem = jQuery( elem ),
            props = {};
Severity: Minor
Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

    Function flipFactory has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function flipFactory(iterable) {
        var flipSequence = makeSequence(iterable);
        flipSequence._iter = iterable;
        flipSequence.size = iterable.size;
        flipSequence.flip = function()  {return iterable};
    Severity: Minor
    Found in src/thirdparty/immutable.js - About 1 hr to fix

      Function _showSummary has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          SearchResultsView.prototype._showSummary = function () {
              var count     = this._model.countFilesMatches(),
                  lastIndex = this._getLastIndex(count.matches),
                  typeStr = (count.matches > 1) ? Strings.FIND_IN_FILES_MATCHES : Strings.FIND_IN_FILES_MATCH,
                  filesStr,
      Severity: Minor
      Found in src/search/SearchResultsView.js - About 1 hr to fix

        Function addCommunicationArgs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function addCommunicationArgs(communication, processArgs, isRuntime) {
                switch (communication) {
                    case CommunicationTypes.NodeIPC.type:
                        {
                            if (isRuntime) {
        Severity: Minor
        Found in src/languageTools/LanguageClient/ServerUtils.js - About 1 hr to fix

          Function _render has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              QuickSearchField.prototype._render = function (results, query) {
                  this._displayedQuery = query;
                  this._displayedResults = results;
                  if (this._firstHighlightIndex >= 0) {
                      this._highlightIndex = this._firstHighlightIndex;
          Severity: Minor
          Found in src/search/QuickSearchField.js - About 1 hr to fix

            Function handleContentsModified has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function handleContentsModified() {
                        Dialogs.showModalDialog(
                            DefaultDialogs.DIALOG_ID_ERROR,
                            Strings.EXT_MODIFIED_TITLE,
                            StringUtils.format(
            Severity: Minor
            Found in src/document/DocumentCommandHandlers.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if ( match[1] === "nth" ) {
                              if ( !match[2] ) {
                                  Sizzle.error( match[0] );
                              }
              
              

                Consider simplifying this complex logical expression.
                Open

                                        } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                            diff = cache[1];
                
                                        // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                        } else {
                Severity: Critical
                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if ( start && start[ 3 ] !== unit ) {
                                  // Trust units reported by jQuery.css
                                  unit = unit || start[ 3 ];
                  
                                  // Make sure we update the tween properties later on
                  Severity: Critical
                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                    Function _performNpmInstall has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function _performNpmInstall(installDirectory, npmOptions, callback) {
                        var npmPath = path.resolve(path.dirname(require.resolve("npm")), "..", "bin", "npm-cli.js");
                        var args = [npmPath, "install"].concat(npmOptions);
                    
                        console.log("running npm " + args.slice(1).join(" ") + " in " + installDirectory);
                    Severity: Minor
                    Found in src/extensibility/node/npm-installer.js - About 1 hr to fix

                      Function _cmdDownloadFile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function _cmdDownloadFile(downloadId, url, proxy, callback, pCallback) {
                          // Backwards compatibility check, added in 0.37
                          if (typeof proxy === "function") {
                              callback = proxy;
                              proxy = undefined;
                      Severity: Minor
                      Found in src/extensibility/node/ExtensionManagerDomain.js - About 1 hr to fix

                        Function expectParameterHint has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function expectParameterHint(expectedParams, expectedParameter) {
                                    var requestStatus = null;
                                    var request,
                                        complete = false;
                                    runs(function () {
                        Severity: Minor
                        Found in src/extensions/default/PhpTooling/unittests.js - About 1 hr to fix

                          Function showErrorPopUp has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function showErrorPopUp(err) {
                                  if(!err) {
                                      return;
                                  }
                                  var localizedErrStr = "";
                          Severity: Minor
                          Found in src/extensions/default/PhpTooling/main.js - About 1 hr to fix

                            Function validatePhpExecutable has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function validatePhpExecutable(confParams) {
                                executablePath = confParams["executablePath"] ||
                                    (process.platform === 'win32' ? 'php.exe' : 'php');
                            
                                memoryLimit = confParams["memoryLimit"] || '4095M';
                            Severity: Minor
                            Found in src/extensions/default/PhpTooling/client.js - About 1 hr to fix

                              Function expectSymbols has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function expectSymbols(provider, query, expectedSymbols) {
                                          var requestStatus = null;
                                          var request,
                                              matcher;
                              
                              
                              Severity: Minor
                              Found in src/extensions/default/PhpTooling/unittests.js - About 1 hr to fix

                                Function _dialogDatepicker has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _dialogDatepicker: function(input, date, onSelect, settings, pos) {
                                        var inst = this._dialogInst; // internal instance
                                        if (!inst) {
                                            this.uuid += 1;
                                            var id = 'dp' + this.uuid;

                                  Function _keydown has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _keydown: function( event ) {
                                          if ( event.altKey || event.ctrlKey ) {
                                              return;
                                          }
                                  
                                  

                                    Function _setupHeightStyle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _setupHeightStyle: function( heightStyle ) {
                                            var maxHeight, overflow,
                                                parent = this.element.parent();
                                    
                                            if ( heightStyle === "fill" ) {

                                      Function top has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              top: function( position, data ) {
                                                  var within = data.within,
                                                      withinOffset = within.offset.top + within.scrollTop,
                                                      outerHeight = within.height,
                                                      offsetTop = within.isWindow ? 0 : within.offset.top,

                                        Function _position has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _position: function( position ) {
                                                var myAt = [],
                                                    offset = [ 0, 0 ],
                                                    isVisible;
                                        
                                        
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language