adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

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 _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 _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 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 _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 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 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 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 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 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

                            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 getAllFiles has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  ProjectModel.prototype.getAllFiles = function getAllFiles(filter, additionalFiles, sort) {
                                      // The filter and includeWorkingSet params are both optional.
                                      // Handle the case where filter is omitted but includeWorkingSet is
                                      // specified.
                                      if (additionalFiles === undefined && typeof (filter) !== "function") {
                              Severity: Minor
                              Found in src/project/ProjectModel.js - About 1 hr to fix

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

                                    function loadStyleSheet(module, path) {
                                        var result = new $.Deferred();
                                
                                        loadFile(module, path)
                                            .done(function (content) {
                                Severity: Minor
                                Found in src/utils/ExtensionUtils.js - About 1 hr to fix

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

                                      ProjectModel.prototype._getAllFilesCache = function _getAllFilesCache(sort) {
                                          if (!this._allFilesCachePromise) {
                                              var deferred = new $.Deferred(),
                                                  allFiles = [],
                                                  allFilesVisitor = function (entry) {
                                  Severity: Minor
                                  Found in src/project/ProjectModel.js - About 1 hr to fix

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

                                            function refreshInterfaceCallback(spec) {
                                                function makeCommandFunction(domainName, commandSpec) {
                                                    return function () {
                                                        var deferred = $.Deferred();
                                                        var parameters = Array.prototype.slice.call(arguments, 0);
                                    Severity: Minor
                                    Found in src/utils/NodeConnection.js - About 1 hr to fix

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

                                          function _loadAll(directory, config, entryPoint, processExtension) {
                                              var result = new $.Deferred();
                                      
                                              FileSystem.getDirectoryForPath(directory).getContents(function (err, contents) {
                                                  if (!err) {
                                      Severity: Minor
                                      Found in src/utils/ExtensionLoader.js - About 1 hr to fix

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

                                            function _getTagInfoStartingFromAttrValue(ctx) {
                                                // Assume we in the attr value
                                                // and validate that by going backwards
                                                var attrInfo = _extractAttrVal(ctx),
                                                    attrVal = attrInfo.val,
                                        Severity: Minor
                                        Found in src/language/HTMLUtils.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language