adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

File strings.js has 746 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/ja/strings.js - About 1 day to fix

    File strings.js has 746 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/fr/strings.js - About 1 day to fix

      File ProjectModel.js has 740 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/project/ProjectModel.js - About 1 day to fix

        File unittests.js has 737 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/InlineTimingFunctionEditor/unittests.js - About 1 day to fix

          Function DOMHelpersModule has a Cognitive Complexity of 85 (exceeds 5 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: Minor
          Found in src/LiveDevelopment/Agents/DOMHelpers.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

          File Pane.js has 730 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/view/Pane.js - About 1 day to fix

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

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

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

              /*
               * Copyright (c) 2018 - 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/AutoUpdate/main.js - About 1 day to fix

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

                module.exports = function (grunt) {
                    // load dependencies
                    require('load-grunt-tasks')(grunt, {
                        pattern: [
                            'grunt-*',
                Severity: Major
                Found in Gruntfile.js - About 1 day to fix

                  File EditorCommandHandlers.js has 703 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/EditorCommandHandlers.js - About 1 day to fix

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

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

                      Function DOMAgent has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring.
                      Open

                      define(function DOMAgent(require, exports, module) {
                          "use strict";
                      
                          var Inspector       = require("LiveDevelopment/Inspector/Inspector"),
                              EventDispatcher = require("utils/EventDispatcher"),
                      Severity: Minor
                      Found in src/LiveDevelopment/Agents/DOMAgent.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

                      File strings.js has 662 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/nls/fi/strings.js - About 1 day to fix

                        File unittests.js has 661 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/CSSCodeHints/unittests.js - About 1 day to fix

                          File strings.js has 658 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/de/strings.js - About 1 day to fix

                            File strings.js has 657 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/pl/strings.js - About 1 day to fix

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

                              module.exports = function( grunt ) {
                              
                              var // modules
                                  fs = require( "fs" ),
                                  path = require( "path" ),

                                File globmatch.js has 649 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                // This is a slightly modified version of the minimatch library
                                // https://github.com/isaacs/minimatch
                                // (MIT-licensed, Copyright 2009-2011 Isaac Z. Schlueter)
                                //
                                // It has been modified to work properly with RequireJS and
                                Severity: Major
                                Found in src/thirdparty/globmatch.js - About 1 day to fix

                                  File strings.js has 641 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/nls/zh-cn/strings.js - About 1 day to fix

                                    File strings.js has 636 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/bg/strings.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language