adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

File DocumentCommandHandlers.js has 1116 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/document/DocumentCommandHandlers.js - About 2 days to fix

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

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

      Function DOMNodeModule has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring.
      Open

      define(function DOMNodeModule(require, exports, module) {
          "use strict";
      
          var DOMHelpers = require("LiveDevelopment/Agents/DOMHelpers");
      
      
      Severity: Minor
      Found in src/LiveDevelopment/Agents/DOMNode.js - About 2 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 PreferencesBase.js has 998 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/preferences/PreferencesBase.js - About 2 days to fix

        Function token has 491 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    token: function () {
                        var b, c, captures, d, depth, high, i, l, low, q, t, isLiteral, isInRange;
        
                        function match(x) {
                            var r = x.exec(s), r1;

          File ScopeManager.js has 936 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/JSUtils/ScopeManager.js - About 2 days to fix

            Function nextToken has 453 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Tokenizer.prototype.nextToken = function () {
                    this._token = null;
            
                    if (this._nextToken) {
                        var result = this._nextToken;
            Severity: Major
            Found in src/language/HTMLTokenizer.js - About 2 days to fix

              File LiveDevelopment.js has 905 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/LiveDevelopment/LiveDevelopment.js - About 2 days to fix

                File WorkingSetView.js has 890 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/WorkingSetView.js - About 2 days to fix

                  File MainViewManager.js has 884 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/MainViewManager.js - About 2 days to fix

                    Function _makeDraggable has 426 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _makeDraggable($el) {
                            var interval,
                                sourceFile = $el.data(_FILE_KEY);
                    
                            // turn off the "hover-scroll"
                    Severity: Major
                    Found in src/project/WorkingSetView.js - About 2 days to fix

                      Function extractAllSelectors has 414 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function extractAllSelectors(text, documentMode) {
                              var state, lines, lineCount,
                                  token, style, stream, line,
                                  selectors              = [],
                                  mode                   = CodeMirror.getMode({indentUnit: 2}, documentMode || "css"),
                      Severity: Major
                      Found in src/language/CSSUtils.js - About 2 days to fix

                        File RemoteFunctions.js has 791 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/LiveDevelopment/Agents/RemoteFunctions.js - About 1 day to fix

                          File Menus.js has 786 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/command/Menus.js - About 1 day to fix

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

                              File KeyBindingManager.js has 776 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/command/KeyBindingManager.js - About 1 day to fix

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

                                  Function DOMNodeModule has 353 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Function TernModule has 352 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function TernModule() {
                                            var ternPromise         = null,
                                                addFilesPromise     = null,
                                                rootTernDir         = null,
                                                projectRoot         = null,
                                    Severity: Major
                                    Found in src/JSUtils/ScopeManager.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/root/strings.js - About 1 day to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language