adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

File Document.js has 330 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/document/Document.js - About 3 hrs to fix

    Function _showFindBar has 98 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _showFindBar(scope, showReplace) {
            FindUtils.notifySearchScopeChanged();
            // If the scope is a file with a custom viewer, then we
            // don't show find in files dialog.
            if (scope && !EditorManager.canOpenPath(scope.fullPath)) {
    Severity: Major
    Found in src/search/FindInFilesUI.js - About 3 hrs to fix

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

          function init() {
              CodeMirror.defineExtension("foldCode", function (pos, options, force) {
                  return doFold(this, pos, options, force);
              });
      
      
      Severity: Major
      Found in src/extensions/default/CodeFolding/foldhelpers/foldcode.js - About 3 hrs to fix

        File Package.js has 327 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/Package.js - About 3 hrs to fix

          File HTMLSimpleDOM.js has 327 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
           * Copyright (c) 2014 - 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/LiveDevelopment/MultiBrowserImpl/language/HTMLSimpleDOM.js - About 3 hrs to fix

            Function doOption has 96 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function doOption() {
                    var b, obj, filter, o = nexttoken.value, t, v;
                    switch (o) {
                    case '*/':
                        error("Unbegun comment.");

              Function matchOne has 96 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Minimatch.prototype.matchOne = function (file, pattern, partial) {
                var options = this.options
              
                if (options.debug) {
                  console.error("matchOne",
              Severity: Major
              Found in src/thirdparty/globmatch.js - About 3 hrs to fix

                File EditorManager.js has 326 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/EditorManager.js - About 3 hrs to fix

                  Function clean has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      clean: function( elems, context, fragment, scripts ) {
                          var checkScriptType, script, j,
                                  ret = [];
                  
                          context = context || document;

                    Function setListBounds has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function setListBounds(list, begin, end) {
                        // Sanitize begin & end using this shorthand for ToInt32(argument)
                        // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
                        if (begin !== undefined) {
                          begin = begin | 0;
                    Severity: Major
                    Found in src/thirdparty/immutable.js - About 3 hrs to fix

                      Function _onReady has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _onReady() {
                              PerfUtils.addMeasurement("window.document Ready");
                      
                              // Let the user know Brackets doesn't run in a web browser yet
                              if (brackets.inBrowser) {
                      Severity: Major
                      Found in src/brackets.js - About 3 hrs to fix

                        Function trigger has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            trigger: function( event, data, elem, onlyHandlers ) {
                                // Don't do events on text and comment nodes
                                if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                                    return;
                                }

                          Function animate has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              animate: function( prop, speed, easing, callback ) {
                                  var optall = jQuery.speed( speed, easing, callback );
                          
                                  if ( jQuery.isEmptyObject( prop ) ) {
                                      return this.each( optall.complete, [ false ] );

                            File FileFilters.js has 323 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*
                             * Copyright (c) 2014 - 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/search/FileFilters.js - About 3 hrs to fix

                              File NodeConnection.js has 322 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/utils/NodeConnection.js - About 3 hrs to fix

                                Function getHintResponse has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function getHintResponse(hints, query, type) {
                                
                                        var trimmedQuery,
                                            formattedHints;
                                
                                
                                Severity: Major
                                Found in src/extensions/default/JavaScriptCodeHints/main.js - About 3 hrs to fix

                                  Function RemoteAgent has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  define(function RemoteAgent(require, exports, module) {
                                      "use strict";
                                  
                                      var LiveDevelopment     = require("LiveDevelopment/LiveDevelopment"),
                                          EventDispatcher     = require("utils/EventDispatcher"),
                                  Severity: Major
                                  Found in src/LiveDevelopment/Agents/RemoteAgent.js - About 3 hrs to fix

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

                                        _create: function() {
                                    
                                            var that = this, o = this.options;
                                            this.element.addClass("ui-resizable");
                                    
                                    

                                      Function extract has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function extract(ast, text, scopes, srcScope, destScope, start, end, isExpression) {
                                              var retObj               = analyzeCode(text, scopes, srcScope, destScope, start, end),
                                                  passParams           = retObj.passParams,
                                                  retParams            = retObj.retParams,
                                                  thisPointerUsed      = retObj.thisPointerUsed,
                                      Severity: Major
                                      Found in src/extensions/default/JavaScriptRefactoring/ExtractToFunction.js - About 3 hrs to fix

                                        File FindInFilesUI.js has 321 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /*
                                         * Copyright (c) 2014 - 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/search/FindInFilesUI.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language