adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function _create has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        var accordionId = this.accordionId = "ui-accordion-" +
                (this.element.attr( "id" ) || ++uid),
            options = this.options;

    Function parseFloat has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Globalize.parseFloat = function( value, radix, cultureSelector ) {
        // radix argument is optional
        if ( typeof radix !== "number" ) {
            cultureSelector = radix;
            radix = 10;

      File ExtensionManagerViewModel.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * Copyright (c) 2013 - 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/extensibility/ExtensionManagerViewModel.js - About 3 hrs to fix

        Function doJumpToDef has 75 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                JSJumpToDefProvider.prototype.doJumpToDef = function () {
                    var offset,
                        handleJumpResponse;
        
        
        
        Severity: Major
        Found in src/extensions/default/JavaScriptCodeHints/main.js - About 3 hrs to fix

          Function apply has 75 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              DOMEditHandler.prototype.apply = function (edits) {
                  var targetID,
                      targetElement,
                      childElement,
                      self = this;
          Severity: Major
          Found in src/LiveDevelopment/Agents/RemoteFunctions.js - About 3 hrs to fix

            Function Datepicker has 75 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Datepicker() {
                this.debug = false; // Change this to true to start debugging
                this._curInst = null; // The current instance in use
                this._keyEvent = false; // If the last event was a key event
                this._disabledInputs = []; // List of date picker inputs that have been disabled

              Consider simplifying this complex logical expression.
              Open

              if ( "getBoundingClientRect" in document.documentElement ) {
                  getOffset = function( elem, doc, docElem, box ) {
                      try {
                          box = elem.getBoundingClientRect();
                      } catch(e) {}

                Function _parseSelector has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function _parseSelector(start, level) {
                
                            currentSelector = "";
                            selectorStartChar = start;
                            selectorStartLine = line;
                Severity: Major
                Found in src/language/CSSUtils.js - About 3 hrs to fix

                  Function getContextInfo has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function getContextInfo(editor, constPos, requireParent, requireNextToken) {
                          var pos, ctx, ctxPrev, ctxNext, offset, keyName, valueName, parentKeyName,
                              isArray, exclusionList, hasColon, hasComma, hasBracket, shouldReplace;
                  
                          pos = $.extend({}, constPos);
                  Severity: Major
                  Found in src/language/JSONUtils.js - About 3 hrs to fix

                    Function Sizzle has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function Sizzle( selector, context, results, seed ) {
                        var match, elem, m, nodeType,
                            // QSA vars
                            i, groups, old, nid, newContext, newSelector;
                    
                    
                    Severity: Major
                    Found in src/thirdparty/jquery-2.1.3.js - About 3 hrs to fix

                      Function _keydownHook has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          InlineMenu.prototype._keydownHook = function (event) {
                              var keyCode,
                                  self = this;
                      
                              // positive distance rotates down; negative distance rotates up
                      Severity: Major
                      Found in src/widgets/InlineMenu.js - About 3 hrs to fix

                        File strings.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*
                         * Copyright (c) 2013 - 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/nls/hu/strings.js - About 2 hrs to fix

                          Function handleRename has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function handleRename() {
                                  var editor = EditorManager.getActiveEditor(),
                                      offset, handleFindRefs, token;
                          
                                  if (!editor) {
                          Severity: Major
                          Found in src/extensions/default/JavaScriptRefactoring/RenameIdentifier.js - About 2 hrs to fix

                            Function analyzeCode has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function analyzeCode(text, scopes, srcScope, destScope, start, end) {
                                    var identifiers          = {},
                                        inThisScope          = {},
                                        thisPointerUsed      = false,
                                        returnStatementUsed  = false,
                            Severity: Major
                            Found in src/extensions/default/JavaScriptRefactoring/ExtractToFunction.js - About 2 hrs to fix

                              File CodeHintList.js has 289 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*
                               * Copyright (c) 2012 - 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/editor/CodeHintList.js - About 2 hrs to fix

                                Function checkForUpdate has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function checkForUpdate(force, _testValues) {
                                        // This is the last version we notified the user about. If checkForUpdate()
                                        // is called with "false", only show the update notification dialog if there
                                        // is an update newer than this one. This value is saved in preferences.
                                        var lastNotifiedBuildNumber = PreferencesManager.getViewState("lastNotifiedBuildNumber");
                                Severity: Major
                                Found in src/utils/UpdateNotification.js - About 2 hrs to fix

                                  Function _cmdInstall has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function _cmdInstall(packagePath, destinationDirectory, options, callback, pCallback, _doUpdate) {
                                      if (!options || !options.disabledDirectory || !options.apiVersion || !options.systemExtensionDirectory) {
                                          callback(new Error(Errors.MISSING_REQUIRED_OPTIONS), null);
                                          return;
                                      }
                                  Severity: Major
                                  Found in src/extensibility/node/ExtensionManagerDomain.js - About 2 hrs to fix

                                    Function _getAutoInstallFiles has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _getAutoInstallFiles(dirPath, autoExtensions) {
                                            var zipFiles    = [],
                                                installZips = [],
                                                updateZips  = [],
                                                deferred    = new $.Deferred();
                                    Severity: Major
                                    Found in src/extensibility/ExtensionManager.js - About 2 hrs to fix

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

                                          PrefsCodeHints.prototype.getHints = function (implicitChar) {
                                              var hints = [], ctxInfo, query, keys, values, option = {type: null, description: null, values: null};
                                      
                                              ctxInfo = this.ctxInfo = JSONUtils.getContextInfo(this.editor, this.editor.getCursorPos(), true);
                                      
                                      
                                      Severity: Major
                                      Found in src/extensions/default/PrefsCodeHints/main.js - About 2 hrs to fix

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

                                            CodeHintsProvider.prototype.getHints = function (implicitChar) {
                                                if (!this.defaultCodeHintProviders.client) {
                                                    return null;
                                                }
                                        
                                        
                                        Severity: Major
                                        Found in src/extensions/default/PhpTooling/CodeHintsProvider.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language