adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function doSearchInScope has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function doSearchInScope(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
Severity: Minor
Found in src/search/FindInFiles.js - About 35 mins to fix

    Function searchAndShowResults has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        function searchAndShowResults(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
    Severity: Minor
    Found in src/search/FindInFilesUI.js - About 35 mins to fix

      Function showModalDialog has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function showModalDialog(dlgClass, title, message, buttons, autoDismiss) {
      Severity: Minor
      Found in src/widgets/Dialogs.js - About 35 mins to fix

        Function searchAndReplaceResults has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            function searchAndReplaceResults(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
        Severity: Minor
        Found in src/search/FindInFilesUI.js - About 35 mins to fix

          Function getParameters has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

          function getParameters(inferFnType) {
          
              // work around define functions before use warning.
              var recordTypeToString, inferTypeToString, processInferFnTypeParameters, inferFnTypeToString;
          
          
          Severity: Minor
          Found in src/JSUtils/node/TernNodeDomain.js - About 35 mins 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 doSearch has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

          function doSearch(searchObject, nextPages) {
          
              savedSearchObject = searchObject;
              if (!files) {
                  console.log("no file object found");
          Severity: Minor
          Found in src/search/node/FindInFilesDomain.js - About 35 mins 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 notify has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

          LanguageClient.prototype.notify = function (params) {
              var messageParams = params.params;
              if (messageParams && messageParams.messageType === MESSAGE_TYPE.BRACKETS) {
                  if (!messageParams.type) {
                      console.log("Invalid brackets notification");
          Severity: Minor
          Found in src/languageTools/LanguageClient/LanguageClient.js - About 35 mins 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 parseQueryInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

          function parseQueryInfo(queryInfo) {
              var queryExpr;
          
              // TODO: only major difference between this one and the one in FindReplace is that
              // this always returns a regexp even for simple strings. Reconcile.
          Severity: Minor
          Found in src/search/node/FindInFilesDomain.js - About 35 mins 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

          Method writeParams has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              def writeParams(domain, params, prefixLine = false)
                  return unless params
                  write prefixLine if prefixLine
                  write "<dl>"
                  params.each do |p|
          Severity: Minor
          Found in src/LiveDevelopment/Inspector/jsdoc.rb - About 35 mins 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

          Avoid too many return statements within this function.
          Open

                  return false;
          Severity: Major
          Found in src/editor/CodeHintList.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                            return false;
            Severity: Major
            Found in src/editor/CodeHintList.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return null;
              Severity: Major
              Found in src/command/KeyBindingManager.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return 0;
                Severity: Major
                Found in src/JSUtils/Session.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return menuItem;
                  Severity: Major
                  Found in src/command/Menus.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return null;
                    Severity: Major
                    Found in src/command/KeyBindingManager.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return null;
                      Severity: Major
                      Found in src/command/Menus.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return true;
                        Severity: Major
                        Found in src/editor/CodeHintList.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return;
                          Severity: Major
                          Found in src/command/Menus.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return this._codeMirror.getOption("mode");
                            Severity: Major
                            Found in src/editor/Editor.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return $relativeElement;
                              Severity: Major
                              Found in src/command/Menus.js - About 30 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language