adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function removeMenuItem has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Menu.prototype.removeMenuItem = function (command) {
        var menuItemID,
            commandID;

        if (!command) {
Severity: Minor
Found in src/command/Menus.js - About 1 hr to fix

    Function duplicateText has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function duplicateText(editor) {
            editor = editor || EditorManager.getFocusedEditor();
            if (!editor) {
                return;
            }
    Severity: Minor
    Found in src/editor/EditorCommandHandlers.js - About 1 hr to fix

      Function _onImageLoaded has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ImageView.prototype._onImageLoaded = function (e) {
              // add dimensions and size
              this._naturalWidth = e.currentTarget.naturalWidth;
              this._naturalHeight = e.currentTarget.naturalHeight;
      
      
      Severity: Minor
      Found in src/editor/ImageViewer.js - About 1 hr to fix

        Function getSessionHints has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function getSessionHints(query, cursor, type, token, $deferredHints) {
        
                var hintResults = session.getHints(query, getStringMatcher());
                if (hintResults.needGuesses) {
                    var guessesResponse = ScopeManager.requestGuesses(session,
        Severity: Minor
        Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 hr to fix

          Function insertHint has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              JSHints.prototype.insertHint = function ($hintObj) {
                  var hint        = $hintObj.data("token"),
                      completion  = hint.value,
                      cursor      = session.getCursor(),
                      query       = session.getQuery(),
          Severity: Minor
          Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 hr to fix

            Function applyChange has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function applyChange(from, to, text) {
                    var delta = from - to + text.length;
                    var node = nodeAtLocation(from);
            
                    // insert a text node
            Severity: Minor
            Found in src/LiveDevelopment/Agents/DOMAgent.js - About 1 hr to fix

              Function _prepareServer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _prepareServer(doc) {
                      var deferred = new $.Deferred(),
                          showBaseUrlPrompt = false;
              
                      _server = LiveDevServerManager.getServer(doc.file.fullPath);
              Severity: Minor
              Found in src/LiveDevelopment/LiveDevelopment.js - About 1 hr to fix

                Function _onKeydown has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    InlineDocsViewer.prototype._onKeydown = function (event) {
                        var keyCode  = event.keyCode,
                            scroller = this.$scroller[0],
                            scrollPos;
                
                
                Severity: Minor
                Found in src/extensions/default/MDNDocs/InlineDocsViewer.js - About 1 hr to fix

                  Function _optionDatepicker has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _optionDatepicker: function(target, name, value) {
                          var inst = this._getInst(target);
                          if (arguments.length == 2 && typeof name == 'string') {
                              return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
                                  (inst ? (name == 'all' ? $.extend({}, inst.settings) :

                    Function _canvasKeyDown has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _canvasKeyDown(e) {
                            var code = e.keyCode,
                                self = e.target,
                                stepEditor = self.stepEditor;
                    
                    
                    Severity: Minor
                    Found in src/extensions/default/InlineTimingFunctionEditor/StepEditor.js - About 1 hr to fix

                      Function getRange has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function getRange(allowFolded) {
                                  var range = options.range || finder(cm, pos);
                                  if (!range || range.to.line - range.from.line < prefs.getSetting("minFoldSize")) {
                                      return null;
                                  }
                      Severity: Minor
                      Found in src/extensions/default/CodeFolding/foldhelpers/foldcode.js - About 1 hr to fix

                        Function complete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                complete: function() {
                                    if ( el.to.opacity === 0 ) {
                                        el.css( "opacity", el.from.opacity );
                                    }
                                    if( mode === "hide" ) {

                          Function resize has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              resize: function(event, ui) {
                                  var that = $(this).data("resizable"), o = that.options,
                                          ps = that.containerSize, co = that.containerOffset, cs = that.size, cp = that.position,
                                          pRatio = that._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = that.containerElement;
                          
                          

                            Function _refresh has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _refresh: function() {
                                    this._setupDisabled( this.options.disabled );
                                    this._setupEvents( this.options.event );
                                    this._setupHeightStyle( this.options.heightStyle );
                            
                            

                              Function promise has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  promise: function( type, object ) {
                                      if ( typeof type !== "string" ) {
                                          object = type;
                                          type = undefined;
                                      }

                                Function style has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    style: function( elem, name, value, extra ) {
                                        // Don't set styles on text and comment nodes
                                        if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                            return;
                                        }

                                  Function clone has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                          var srcElements,
                                              destElements,
                                              i,
                                              // IE<=8 does not properly clone detached, unknown element nodes

                                    Function read has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        File.prototype.read = function (options, callback) {
                                            if (typeof (options) === "function") {
                                                callback = options;
                                                options = {};
                                                options.encoding = this._encoding;
                                    Severity: Minor
                                    Found in src/filesystem/File.js - About 1 hr to fix

                                      Function getExpressions has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function getExpressions(ast, start, end) {
                                              var expns = [],
                                                  s     = start,
                                                  e     = end,
                                                  expn;
                                      Severity: Minor
                                      Found in src/extensions/default/JavaScriptRefactoring/ExtractToVariable.js - About 1 hr to fix

                                        Function handleFindRefs has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function handleFindRefs (refsResp) {
                                                    if (!refsResp || !refsResp.references || !refsResp.references.refs) {
                                                        return;
                                                    }
                                        
                                        
                                        Severity: Minor
                                        Found in src/extensions/default/JavaScriptRefactoring/RenameIdentifier.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language