adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function JSHINT has a Cognitive Complexity of 1892 (exceeds 5 allowed). Consider refactoring.
Open

var JSHINT = (function () {
    "use strict";

    var anonname,       // The guessed name for anonymous functions.

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 jquery-1.7.2.js has 6474 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.7.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig

    Function JSHINT has 3618 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var JSHINT = (function () {
        "use strict";
    
        var anonname,       // The guessed name for anonymous functions.
    
    

      File jquery-2.1.3.js has 6164 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery JavaScript Library v2.1.3
       * http://jquery.com/
       *
       * Includes Sizzle.js
      Severity: Major
      Found in src/thirdparty/jquery-2.1.3.js - About 2 wks to fix

        File immutable.js has 3950 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * Copyright (c) 2014-present, Facebook, Inc.
         *
         * This source code is licensed under the MIT license found in the
         * LICENSE file in the root directory of this source tree.
        Severity: Major
        Found in src/thirdparty/immutable.js - About 1 wk to fix

          File jshint.js has 3623 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * JSHint, by JSHint Community.
           *
           * Licensed under the same slightly modified MIT license that JSLint is.
           * It stops evil-doers everywhere.

            Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            (function( window ) {
            
            var i,
                support,
                Expr,
            Severity: Major
            Found in src/thirdparty/jquery-2.1.3.js - About 6 days to fix

              Function RemoteFunctions has a Cognitive Complexity of 234 (exceeds 5 allowed). Consider refactoring.
              Open

              function RemoteFunctions(config, remoteWSPort) {
                  "use strict";
              
                  var experimental;
                  if (!config) {
              Severity: Minor
              Found in src/LiveDevelopment/Agents/RemoteFunctions.js - About 4 days 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 LiveDevelopment has 902 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              define(function LiveDevelopment(require, exports, module) {
                  "use strict";
              
                  require("utils/Global");
              
              
              Severity: Major
              Found in src/LiveDevelopment/LiveDevelopment.js - About 4 days to fix

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

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

                  Function RemoteFunctions has 788 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function RemoteFunctions(config, remoteWSPort) {
                      "use strict";
                  
                      var experimental;
                      if (!config) {
                  Severity: Major
                  Found in src/LiveDevelopment/Agents/RemoteFunctions.js - About 3 days to fix

                    File Editor.js has 1458 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/editor/Editor.js - About 3 days to fix

                      File qunit.js has 1353 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /**
                       * QUnit v1.6.0 - A JavaScript Unit Testing Framework
                       *
                       * http://docs.jquery.com/QUnit
                       *

                        File unittests.js has 1333 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/unittests.js - About 3 days to fix

                          Function LiveDevelopment has a Cognitive Complexity of 168 (exceeds 5 allowed). Consider refactoring.
                          Open

                          define(function LiveDevelopment(require, exports, module) {
                              "use strict";
                          
                              require("utils/Global");
                          
                          
                          Severity: Minor
                          Found in src/LiveDevelopment/LiveDevelopment.js - About 3 days 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 unittests.js has 1267 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/InlineColorEditor/unittests.js - About 3 days to fix

                            Function jQuery has 614 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var jQuery = (function() {
                            
                            // Define a local copy of jQuery
                            var jQuery = function( selector, context ) {
                                    // The jQuery object is actually just the init constructor 'enhanced'

                              Function lex has 607 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var lex = (function lex() {
                                      var character, from, line, s;
                              
                              // Private lex methods
                              
                              

                                File globalize.js has 1162 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*!
                                 * Globalize
                                 *
                                 * http://github.com/jquery/globalize
                                 *

                                  File CSSUtils.js has 1138 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/CSSUtils.js - About 2 days to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language