adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

File strings.js has 434 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/nls/ru/strings.js - About 6 hrs to fix

    File Session.js has 432 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/JSUtils/Session.js - About 6 hrs to fix

      File strings.js has 432 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/nls/da/strings.js - About 6 hrs to fix

        File FindBar.js has 432 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/FindBar.js - About 6 hrs to fix

          Function DOMHelpersModule has 158 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          define(function DOMHelpersModule(require, exports, module) {
              "use strict";
          
              /** Test if the given character is a quote character
               * {char} source character
          Severity: Major
          Found in src/LiveDevelopment/Agents/DOMHelpers.js - About 6 hrs to fix

            Function _constructParamsAndRelay has 157 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function _constructParamsAndRelay(relay, type, params) {
                var _params = null,
                    handler = null;
            
                //Check for param object format. We won't change anything if the object is preformatted.
            Severity: Major
            Found in src/languageTools/LanguageClient/ProtocolAdapter.js - About 6 hrs to fix

              Function CSSDocumentModule has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
              Open

              define(function CSSDocumentModule(require, exports, module) {
                  "use strict";
              
                  var _               = require("thirdparty/lodash"),
                      EventDispatcher = require("utils/EventDispatcher"),
              Severity: Minor
              Found in src/LiveDevelopment/Documents/CSSDocument.js - About 6 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function _addPanelListeners has 156 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  SearchResultsView.prototype._addPanelListeners = function () {
                      var self = this;
                      this._panel.$panel
                          .off(".searchResults")  // Remove the old events
                          .on("dblclick.searchResults", ".toolbar", function() {
              Severity: Major
              Found in src/search/SearchResultsView.js - About 6 hrs to fix

                File unittests.js has 423 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/extensions/default/QuickView/unittests.js - About 6 hrs to fix

                  File unittests.js has 423 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/extensions/default/JavaScriptQuickEdit/unittests.js - About 6 hrs to fix

                    File BezierCurveEditor.js has 419 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"),

                      File ExtensionManagerDomain.js has 418 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/node/ExtensionManagerDomain.js - About 6 hrs to fix

                        Function build has 150 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            Builder.prototype.build = function (strict, markCache) {
                                var self = this;
                                var token, lastClosedTag, lastTextNode;
                                var stack = this.stack;
                                var attributeName = null;
                        Severity: Major
                        Found in src/LiveDevelopment/MultiBrowserImpl/language/HTMLSimpleDOM.js - About 6 hrs to fix

                          Function Callbacks has 150 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          jQuery.Callbacks = function( flags ) {
                          
                              // Convert flags from String-formatted to Object-formatted
                              // (we check in cache first)
                              flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};

                            File unittests.js has 416 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*
                             * Copyright (c) 2015 - 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/extensions/default/PrefsCodeHints/unittests.js - About 6 hrs to fix

                              Function build has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  Builder.prototype.build = function (strict, markCache) {
                                      var self = this;
                                      var token, lastClosedTag, lastTextNode;
                                      var stack = this.stack;
                                      var attributeName = null;
                              Severity: Major
                              Found in src/language/HTMLSimpleDOM.js - About 5 hrs to fix

                                Function GotoAgent has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring.
                                Open

                                define(function GotoAgent(require, exports, module) {
                                    "use strict";
                                
                                    require("utils/Global");
                                
                                
                                Severity: Minor
                                Found in src/LiveDevelopment/Agents/GotoAgent.js - About 5 hrs to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                File strings.js has 413 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/nls/nb/strings.js - About 5 hrs to fix

                                  Function CSSDocumentModule has 146 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  define(function CSSDocumentModule(require, exports, module) {
                                      "use strict";
                                  
                                      var _               = require("thirdparty/lodash"),
                                          EventDispatcher = require("utils/EventDispatcher"),
                                  Severity: Major
                                  Found in src/LiveDevelopment/Documents/CSSDocument.js - About 5 hrs to fix

                                    File DefaultProviders.js has 409 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*
                                     * Copyright (c) 2019 - present Adobe. 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/languageTools/DefaultProviders.js - About 5 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language