adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function getFunctionInfo has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Session.prototype.getFunctionInfo = function () {
        var inFunctionCall   = false,
            cursor           = this.getCursor(),
            functionCallPos,
            token            = this.getToken(cursor),
Severity: Major
Found in src/JSUtils/Session.js - About 2 hrs to fix

    Function open has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ContextMenu.prototype.open = function (mouseOrLocation) {
    
            if (!this.parentMenuItem &&
               (!mouseOrLocation || !mouseOrLocation.hasOwnProperty("pageX") || !mouseOrLocation.hasOwnProperty("pageY"))) {
                console.error("ContextMenu open(): missing required parameter");
    Severity: Major
    Found in src/command/Menus.js - About 2 hrs to fix

      Function _getNotificationInformation has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _getNotificationInformation(_notificationInfoUrl) {
              // Last time the versionInfoURL was fetched
              var lastInfoURLFetchTime = PreferencesManager.getViewState("lastNotificationURLFetchTime");
      
              var result = new $.Deferred();
      Severity: Major
      Found in src/extensions/default/InAppNotifications/main.js - About 2 hrs to fix

        Function keydown has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    keydown: function( event ) {
                        var allowed, curVal, newVal, step,
                            index = $( event.target ).data( "ui-slider-handle-index" );
        
                        switch ( event.keyCode ) {

          Function ajaxConvert has 57 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function ajaxConvert( s, response ) {
          
              // Apply the dataFilter if provided
              if ( s.dataFilter ) {
                  response = s.dataFilter( response, s.dataType );

            Function init has 57 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                init = jQuery.fn.init = function( selector, context ) {
                    var match, elem;
            
                    // HANDLE: $(""), $(null), $(undefined), $(false)
                    if ( !selector ) {
            Severity: Major
            Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

              Function createWrapper has 56 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  createWrapper: function( element ) {
              
                      // if the element is already wrapped, return it
                      if ( element.parent().is( ".ui-effects-wrapper" )) {
                          return element.parent();

                Function hasHints has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    AttrHints.prototype.hasHints = function (editor, implicitChar) {
                        var pos = editor.getCursorPos(),
                            tokenType,
                            offset,
                            query;
                Severity: Major
                Found in src/extensions/default/HTMLCodeHints/main.js - About 2 hrs to fix

                  Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function ajaxConvert( s, response, jqXHR, isSuccess ) {
                      var conv2, current, conv, tmp, prev,
                          converters = {},
                          // Work with a copy of dataTypes in case we need to modify it for conversion
                          dataTypes = s.dataTypes.slice();
                  Severity: Major
                  Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                    Function updatePosition has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      , updatePosition: function () {
                          var pos
                            , actualWidth
                            , actualHeight
                            , paddingLeft
                    Severity: Major
                    Found in src/widgets/bootstrap-twipsy-mod.js - About 2 hrs to fix

                      Function showModalDialogUsingTemplate has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function showModalDialogUsingTemplate(template, autoDismiss) {
                              if (autoDismiss === undefined) {
                                  autoDismiss = true;
                              }
                      
                      
                      Severity: Major
                      Found in src/widgets/Dialogs.js - About 2 hrs to fix

                        File HealthDataManager.js has 259 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*
                         * Copyright (c) 2015 - present Adobe Systems Incorporated. All rights reserved.
                         *
                         * Permission is hereby granted, free of charge, to any person obtaining a
                         * copy of this software and associated documentation files (the "Software"),
                        Severity: Minor
                        Found in src/extensions/default/HealthData/HealthDataManager.js - About 2 hrs to fix

                          File RegisterLanguageClientInfo.js has 259 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*
                           * Copyright (c) 2019 - present Adobe. All rights reserved.
                           *
                           * Permission is hereby granted, free of charge, to any person obtaining a
                           * copy of this software and associated documentation files (the "Software"),
                          Severity: Minor
                          Found in src/languageTools/node/RegisterLanguageClientInfo.js - About 2 hrs to fix

                            Function initTernModule has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function initTernModule() {
                                        var moduleDeferred = $.Deferred();
                                        ternPromise = moduleDeferred.promise();
                                        
                                        function prepareTern() {  
                            Severity: Major
                            Found in src/JSUtils/ScopeManager.js - About 2 hrs to fix

                              Function generateInstrumentedHTML has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function generateInstrumentedHTML(editor, remoteScript) {
                                      var doc = editor.document,
                                          dom = scanDocument(doc),
                                          orig = doc.getText(),
                                          gen = "",
                              Severity: Major
                              Found in src/LiveDevelopment/MultiBrowserImpl/language/HTMLInstrumentation.js - About 2 hrs to fix

                                Function _mouseDrag has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _mouseDrag: function(event) {
                                
                                        //Compute the helpers position
                                        this.position = this._generatePosition(event);
                                        this.positionAbs = this._convertPositionTo("absolute");

                                  Function data has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      data: function( elem, name, data, pvt /* Internal Use Only */ ) {
                                          if ( !jQuery.acceptData( elem ) ) {
                                              return;
                                          }
                                  
                                  

                                    Function performRename has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        ProjectModel.prototype.performRename = function () {
                                            var renameInfo = this._selections.rename;
                                            if (!renameInfo) {
                                                return;
                                            }
                                    Severity: Major
                                    Found in src/project/ProjectModel.js - About 2 hrs to fix

                                      Function _addToScopeOrder has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _addToScopeOrder: function (id, scope, promise, addBefore) {
                                                  var shadowScopeOrder = this._defaults._shadowScopeOrder,
                                                      shadowEntry,
                                                      index,
                                                      isPending = false,
                                      Severity: Major
                                      Found in src/preferences/PreferencesBase.js - About 2 hrs to fix

                                        Function _doOpen has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _doOpen(fullPath, silent, paneId, options) {
                                                var result = new $.Deferred();
                                        
                                                // workaround for https://github.com/adobe/brackets/issues/6001
                                                // TODO should be removed once bug is closed.
                                        Severity: Major
                                        Found in src/document/DocumentCommandHandlers.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language