adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function _showImageTip has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    ImageView.prototype._showImageTip = function (e) {
        // Don't show image tip if this._scale is close to zero.
        // since we won't have enough room to show tip anyway.
        if (Math.floor(this._scale) === 0) {
            return;
Severity: Minor
Found in src/editor/ImageViewer.js - About 1 hr to fix

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

        function _open(doc) {
            if (doc && _liveDocument && doc === _liveDocument.doc) {
                if (_server) {
                    // Launch the URL in the browser. If it's the first one to connect back to us,
                    // our status will transition to ACTIVE once it does so.
    Severity: Minor
    Found in src/LiveDevelopment/LiveDevMultiBrowser.js - About 1 hr to fix

      Function plot has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              plot: function (settings) {
                  var xy = this.bezier.coordinates,
                      ctx = this.canvas.getContext("2d"),
                      setting;
      
      

        Function initiateUpdateProcess has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function initiateUpdateProcess(formattedInstallerPath, formattedLogFilePath, installStatusFilePath) {
        
                // Get additional update parameters on Mac : installDir, appName, and updateDir
                function getAdditionalParams() {
                    var retval = {};
        Severity: Minor
        Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

          Function _tabKeydown has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _tabKeydown: function( event ) {
                  var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
                      selectedIndex = this.tabs.index( focusedTab ),
                      goingForward = true;
          
          

            Function _loadDefaultPrefs has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _loadDefaultPrefs(prefsPath, deferredPromise) {
            
                    var defaultPrefsPath = defaultPreferencesFullPath,
                        file             = FileSystem.getFileForPath(defaultPrefsPath);
            
            
            Severity: Minor
            Found in src/extensions/default/DebugCommands/main.js - About 1 hr to fix

              Function stop has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  stop: function( type, clearQueue, gotoEnd ) {
                      if ( typeof type !== "string" ) {
                          gotoEnd = clearQueue;
                          clearQueue = type;
                          type = undefined;

                Function _handleDirectoryChange has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    FileSystem.prototype._handleDirectoryChange = function (directory, callback) {
                        var oldContents = directory._contents;
                
                        directory._clearCachedData();
                        directory.getContents(function (err, contents) {
                Severity: Minor
                Found in src/filesystem/FileSystem.js - About 1 hr to fix

                  Function stringMatch has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function stringMatch(str, query, options, special) {
                          var result;
                  
                          options = options || {};
                  
                  
                  Severity: Minor
                  Found in src/utils/StringMatch.js - About 1 hr to fix

                    Function fileClosed has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function fileClosed(file) {
                            if (!file) {
                                return;
                            }
                            var language = LanguageManager.getLanguageForPath(file._path),
                    Severity: Minor
                    Found in src/utils/HealthLogger.js - About 1 hr to fix

                      Function skipWhileFactory has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function skipWhileFactory(iterable, predicate, context, useKeys) {
                          var skipSequence = makeSequence(iterable);
                          skipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
                            if (reverse) {
                              return this.cacheResult().__iterate(fn, reverse);
                      Severity: Minor
                      Found in src/thirdparty/immutable.js - About 1 hr to fix

                        Function updateResultSet has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function updateResultSet(editor) {
                                var cm = editor._codeMirror,
                                    state = getSearchState(cm);
                        
                                function indicateHasMatches(numResults) {
                        Severity: Minor
                        Found in src/search/FindReplace.js - About 1 hr to fix

                          Function _messageHandler has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              BracketsToNodeInterface.prototype._messageHandler = function (evt, params) {
                                  var methodName = params.method,
                                      self = this;
                          
                                  function _getErrorString(err) {
                          Severity: Minor
                          Found in src/languageTools/BracketsToNodeInterface.js - About 1 hr to fix

                            Function exports has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            module.exports = function (grunt) {
                                var common          = require("./lib/common")(grunt),
                                    child_process   = require("child_process"),
                                    q               = require("q"),
                                    qexec           = q.denodeify(child_process.exec),
                            Severity: Minor
                            Found in tasks/test.js - About 1 hr to fix

                              Function loadAgents has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function loadAgents() {
                                      // If we're already loading agents return same promise
                                      if (_loadAgentsPromise) {
                                          return _loadAgentsPromise;
                                      }
                              Severity: Minor
                              Found in src/LiveDevelopment/LiveDevelopment.js - About 1 hr to fix

                                Function formatHints has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function formatHints(hints, query) {
                                            return hints.map(function (token) {
                                                var $hintObj    = $("<span>").addClass("brackets-js-hints");
                                
                                                // level indicates either variable scope or property confidence
                                Severity: Minor
                                Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 hr to fix

                                  Function insertHtmlHint has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      UrlCodeHints.prototype.insertHtmlHint = function (completion) {
                                          var cursor = this.editor.getCursorPos(),
                                              start = {line: -1, ch: -1},
                                              end = {line: -1, ch: -1},
                                              tagInfo = HTMLUtils.getTagInfo(this.editor, cursor),
                                  Severity: Minor
                                  Found in src/extensions/default/UrlCodeHints/main.js - About 1 hr to fix

                                    Function _generatePosition has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _generatePosition: function(event) {
                                    
                                            var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
                                            var pageX = event.pageX;
                                            var pageY = event.pageY;

                                      Function effect has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          effect: function( effect, options, speed, callback ) {
                                              var args = _normalizeArguments.apply( this, arguments ),
                                                  mode = args.mode,
                                                  queue = args.queue,
                                                  effectMethod = $.effects.effect[ args.effect ],

                                        Function load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            load: function( url, params, callback ) {
                                                if ( typeof url !== "string" && _load ) {
                                                    return _load.apply( this, arguments );
                                        
                                                // Don't do a request if no elements are being requested
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language