adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function fix has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    fix: function( event ) {
        if ( event[ jQuery.expando ] ) {
            return event;
        }

Severity: Minor
Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

    Function getProvidersForPath has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function getProvidersForPath(filePath) {
            var language            = LanguageManager.getLanguageForPath(filePath).getId(),
                context             = PreferencesManager._buildContext(filePath, language),
                installedProviders  = getProvidersForLanguageId(language),
                preferredProviders,
    Severity: Minor
    Found in src/language/CodeInspection.js - About 1 hr to fix

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

          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
              var i, l, srcElements, destElements,
                  clone = elem.cloneNode( true ),
                  inPage = jQuery.contains( elem.ownerDocument, elem );
      
      
      Severity: Minor
      Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

        Function addTextDelete has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var addTextDelete = function () {
                    var prev = prevNode();
                    if (prev && !prev.children) {
                        newEdit = {
                            type: "textReplace",
        Severity: Minor
        Found in src/language/HTMLDOMDiff.js - About 1 hr to fix

          Function _getPrecedingPropValues has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function _getPrecedingPropValues(ctx) {
                  var lastValue = "",
                      curValue,
                      propValues = [];
                  while (ctx.token.string !== ":" && TokenUtils.movePrevToken(ctx)) {
          Severity: Minor
          Found in src/language/CSSUtils.js - About 1 hr to fix

            Function make has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function make () {
              // don't do it more than once.
              if (this._made) return
            
              var pattern = this.pattern
            Severity: Minor
            Found in src/thirdparty/globmatch.js - About 1 hr to fix

              Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function propFilter( props, specialEasing ) {
                  var index, name, easing, value, hooks;
              
                  // camelCase, specialEasing and expand cssHook pass
                  for ( index in props ) {
              Severity: Minor
              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                Function updateVNode has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function updateVNode(node, ownerID, level, index, value, didAlter) {
                    var idx = (index >>> level) & MASK;
                    var nodeHas = node && idx < node.array.length;
                    if (!nodeHas && value === undefined) {
                      return node;
                Severity: Minor
                Found in src/thirdparty/immutable.js - About 1 hr to fix

                  Function _applySingleChangeToRange has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      TextRange.prototype._applySingleChangeToRange = function (change) {
                          // console.log(this + " applying change to (" +
                          //         (change.from && (change.from.line+","+change.from.ch)) + " - " +
                          //         (change.to && (change.to.line+","+change.to.ch)) + ")");
                  
                  
                  Severity: Minor
                  Found in src/document/TextRange.js - About 1 hr to fix

                    Function prioritizeOpenFile has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function prioritizeOpenFile(files, firstFile) {
                            var workingSetFiles = MainViewManager.getWorkingSet(MainViewManager.ALL_PANES),
                                workingSetFileFound = {},
                                fileSetWithoutWorkingSet = [],
                                startingWorkingFileSet = [],
                    Severity: Minor
                    Found in src/search/FindUtils.js - About 1 hr to fix

                      Function setVisible has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function setVisible(curEditor, visible) {
                              // short-circuit no-ops
                              if ((visible && curEditor === editor) || (!visible && !editor)) {
                                  return;
                              }
                      Severity: Minor
                      Found in src/search/ScrollTrackMarkers.js - About 1 hr to fix

                        Function setInspectionResults has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            LintingProvider.prototype.setInspectionResults = function (msgObj) {
                                let diagnostics = msgObj.diagnostics,
                                    filePath = PathConverters.uriToPath(msgObj.uri),
                                    errors = [];
                        
                        
                        Severity: Minor
                        Found in src/languageTools/DefaultProviders.js - About 1 hr to fix

                          Function close has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              ModalBar.prototype.close = function (restoreScrollPos, animate, _reason) {
                                  var result = new $.Deferred(),
                                      self = this;
                          
                                  if (restoreScrollPos === undefined) {
                          Severity: Minor
                          Found in src/widgets/ModalBar.js - About 1 hr to fix

                            Function download has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function download(url, downloadId) {
                                    return _extensionManagerCall(function (extensionManager) {
                                        var d = new $.Deferred();
                            
                                        // Validate URL
                            Severity: Minor
                            Found in src/extensibility/Package.js - About 1 hr to fix

                              Function handleTimedOut has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function handleTimedOut(response) {
                              
                                      var detectedExclusions  = PreferencesManager.get("jscodehints.detectedExclusions") || [],
                                          filePath            = response.file;
                              
                              
                              Severity: Minor
                              Found in src/JSUtils/ScopeManager.js - About 1 hr to fix

                                Function _readUserKeyMap has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _readUserKeyMap() {
                                        var file   = FileSystem.getFileForPath(_getUserKeyMapFilePath()),
                                            result = new $.Deferred();
                                
                                        file.exists(function (err, doesExist) {
                                Severity: Minor
                                Found in src/command/KeyBindingManager.js - About 1 hr to fix

                                  Function addBinding has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function addBinding(command, keyBindings, platform) {
                                          var commandID = "",
                                              results;
                                  
                                          if (!command) {
                                  Severity: Minor
                                  Found in src/command/KeyBindingManager.js - About 1 hr to fix

                                    Function _removeRange has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        MultiRangeInlineEditor.prototype._removeRange = function (range) {
                                            // If this is the last range, just close the whole widget
                                            if (this._ranges.length <= 1) {
                                                this.close();
                                                return;  // note: the dispose() that would normally happen below is covered by close()
                                    Severity: Minor
                                    Found in src/editor/MultiRangeInlineEditor.js - About 1 hr to fix

                                      Function getFileInfo has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function getFileInfo(session, preventPartialUpdates) {
                                              var start = session.getCursor(),
                                                  end = start,
                                                  document = session.editor.document,
                                                  path = document.file.fullPath,
                                      Severity: Minor
                                      Found in src/JSUtils/ScopeManager.js - About 1 hr to fix

                                        Function getTernHints has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function getTernHints(fileInfo, offset, isProperty) {
                                            var request = buildRequest(fileInfo, "completions", offset),
                                                i;
                                            //_log("request " + dir + " " + file + " " + offset /*+ " " + text */);
                                            try {
                                        Severity: Minor
                                        Found in src/JSUtils/node/TernNodeDomain.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language