adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function _showDatepicker has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _showDatepicker: function(input) {
        input = input.target || input;
        if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
            input = $('input', input.parentNode)[0];
        if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here

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

        _mouseDrag: function(event) {
            var that = this;
            this.dragged = true;
    
            if (this.options.disabled)

      Function done has 68 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function done( status, nativeStatusText, responses, headers ) {
      
                  // Called once
                  if ( state === 2 ) {
                      return;

        Function filter has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Sizzle.filter = function( expr, set, inplace, not ) {
            var match, anyFound,
                type, found, item, filter, left,
                i, pass,
                old = expr,

          Function getHints has 68 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              SVGCodeHints.prototype.getHints = function (implicitChar) {
                  var hints = [], query, tagInfo, attributes = [], options = [], index, isMultiple, tagSpecificOptions;
          
                  tagInfo  = XMLUtils.getTagInfo(this.editor, this.editor.getCursorPos());
                  this.tagInfo = tagInfo;
          Severity: Major
          Found in src/extensions/default/SVGCodeHints/main.js - About 2 hrs to fix

            Function add has 68 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                add: function( elem, types, handler, data, selector ) {
            
                    var handleObjIn, eventHandle, tmp,
                        events, t, handleObj,
                        special, handlers, type, namespaces, origType,
            Severity: Major
            Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

              Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                  var bySet = setMatchers.length > 0,
                      byElement = elementMatchers.length > 0,
                      superMatcher = function( seed, context, xml, results, outermost ) {
                          var elem, j, matcher,
              Severity: Major
              Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                Function _doKeyDown has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _doKeyDown: function(event) {
                        var inst = $.datepicker._getInst(event.target);
                        var handled = true;
                        var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
                        inst._keyEvent = true;

                  Function block has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function block(ordinary, stmt, isfunc) {
                          var a,
                              b = inblock,
                              old_indent = indent,
                              m,

                    Function _handleAboutDialog has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _handleAboutDialog() {
                            var templateVars = {
                                ABOUT_ICON          : brackets.config.about_icon,
                                APP_NAME_ABOUT_BOX  : brackets.config.app_name_about,
                                BUILD_TIMESTAMP     : brackets.config.build_timestamp,
                    Severity: Major
                    Found in src/help/HelpCommandHandlers.js - About 2 hrs to fix

                      Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function done( status, nativeStatusText, responses, headers ) {
                                  var isSuccess, success, error, response, modified,
                                      statusText = nativeStatusText;
                      
                                  // Called once
                      Severity: Major
                      Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                        Function _registerDataEvents has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            NodeToBracketsInterface.prototype._registerDataEvents = function (domainManager, domainName) {
                                if (!domainManager.hasDomain(domainName)) {
                                    domainManager.registerDomain(domainName, {
                                        major: 0,
                                        minor: 1
                        Severity: Major
                        Found in src/languageTools/LanguageClient/NodeToBracketsInterface.js - About 2 hrs to fix

                          Function getHints has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Session.prototype.getHints = function (query, matcher) {
                          
                                  if (query === undefined) {
                                      query = "";
                                  }
                          Severity: Major
                          Found in src/JSUtils/Session.js - About 2 hrs to fix

                            Function normalizeKeyDescriptorString has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function normalizeKeyDescriptorString(origDescriptor) {
                                    var hasMacCtrl = false,
                                        hasCtrl = false,
                                        hasAlt = false,
                                        hasShift = false,
                            Severity: Major
                            Found in src/command/KeyBindingManager.js - About 2 hrs to fix

                              Function diff has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function diff( o, n ) {
                                      var i,
                                          ns = {},
                                          os = {};
                              
                              

                                Function dispatch has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    dispatch: function( event ) {
                                
                                        // Make a writable jQuery.Event from the native event object
                                        event = jQuery.event.fix( event || window.event );
                                
                                

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

                                  QUnit.load = function() {
                                      runLoggingCallbacks( "begin", QUnit, {} );
                                  
                                      // Initialize the config, saving the execution queue
                                      var banner, filter, i, label, len, main, ol, toolbar, userAgent, val,

                                    Function getHints has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        AttrHints.prototype.getHints = function (implicitChar) {
                                            var cursor = this.editor.getCursorPos(),
                                                query = {queryStr: null},
                                                tokenType,
                                                offset,
                                    Severity: Major
                                    Found in src/extensions/default/HTMLCodeHints/main.js - About 2 hrs to fix

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

                                          CssPropHints.prototype.insertHint = function (hint) {
                                              var offset = this.info.offset,
                                                  cursor = this.editor.getCursorPos(),
                                                  start = {line: -1, ch: -1},
                                                  end = {line: -1, ch: -1},
                                      Severity: Major
                                      Found in src/extensions/default/CSSCodeHints/main.js - About 2 hrs to fix

                                        Function getAllScopes has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function getAllScopes(ast, scope, fullText) {
                                                var curScope = scope;
                                                var cnt = 0;
                                                var scopes = [];
                                        
                                        
                                        Severity: Major
                                        Found in src/extensions/default/JavaScriptRefactoring/RefactoringUtils.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language