adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    ajax: function( url, options ) {

        // If url is an object, simulate pre-1.5 signature
        if ( typeof url === "object" ) {
            options = url;
Severity: Major
Found in src/thirdparty/jquery-2.1.3.js - About 1 day to fix

    File jquery.ui.resizable.js has 564 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery UI Resizable @VERSION
     *
     * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
     * Dual licensed under the MIT or GPL Version 2 licenses.

      File main.js has 562 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * Copyright (c) 2016 - 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: Major
      Found in src/extensions/default/NavigationAndHistory/main.js - About 1 day to fix

        File main.js has 556 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: Major
        Found in src/extensions/default/QuickView/main.js - About 1 day to fix

          File LanguageManager.js has 553 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: Major
          Found in src/language/LanguageManager.js - About 1 day to fix

            File jquery.effects.core.js has 545 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * jQuery UI Effects @VERSION
             *
             * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
             * Dual licensed under the MIT or GPL Version 2 licenses.

              File main.js has 541 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: Major
              Found in src/extensions/default/DebugCommands/main.js - About 1 day to fix

                Function _showDialog has 223 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _showDialog() {
                        var dialog,
                            $dlg,
                            views   = [],
                            $search,
                Severity: Major
                Found in src/extensibility/ExtensionManagerDialog.js - About 1 day to fix

                  File ExtensionManager.js has 532 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: Major
                  Found in src/extensibility/ExtensionManager.js - About 1 day to fix

                    File strings.js has 532 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: Major
                    Found in src/nls/sv/strings.js - About 1 day to fix

                      Function HTMLDocumentModule has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
                      Open

                      define(function HTMLDocumentModule(require, exports, module) {
                          "use strict";
                      
                          var EditorManager       = require("editor/EditorManager"),
                              EventDispatcher     = require("utils/EventDispatcher"),
                      Severity: Minor
                      Found in src/LiveDevelopment/Documents/HTMLDocument.js - About 1 day 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 setDocument has 218 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      setDocument = Sizzle.setDocument = function( node ) {
                          var hasCompare, parent,
                              doc = node ? node.ownerDocument || node : preferredDoc;
                      
                          // If no document and documentElement is available, return
                      Severity: Major
                      Found in src/thirdparty/jquery-2.1.3.js - About 1 day to fix

                        Function DOMAgent has 214 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          File main.js has 520 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: Major
                          Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 day to fix

                            File jquery.ui.slider.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*!
                             * jQuery UI Slider @VERSION
                             *
                             * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
                             * Dual licensed under the MIT or GPL Version 2 licenses.

                              Function generateChildEdits has 211 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var generateChildEdits = function (oldParent, oldNodeMap, newParent, newNodeMap) {
                                      /*jslint continue: true */
                              
                                      var newIndex = 0,
                                          oldIndex = 0,
                              Severity: Major
                              Found in src/language/HTMLDOMDiff.js - About 1 day to fix

                                Function exports has 209 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                module.exports = function (grunt) {
                                    var child_process   = require("child_process"),
                                        http            = require("http"),
                                        https           = require("https"),
                                        build           = {},
                                Severity: Major
                                Found in tasks/build.js - About 1 day to fix

                                  Function Inspector has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  define(function Inspector(require, exports, module) {
                                      "use strict";
                                  
                                      var Async           = require("utils/Async"),
                                          EventDispatcher = require("utils/EventDispatcher");
                                  Severity: Minor
                                  Found in src/LiveDevelopment/Inspector/Inspector.js - About 1 day 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 HTMLDocumentModule has 206 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  define(function HTMLDocumentModule(require, exports, module) {
                                      "use strict";
                                  
                                      var EditorManager       = require("editor/EditorManager"),
                                          EventDispatcher     = require("utils/EventDispatcher"),
                                  Severity: Major
                                  Found in src/LiveDevelopment/Documents/HTMLDocument.js - About 1 day to fix

                                    File strings.js has 508 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: Major
                                    Found in src/nls/nl/strings.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language