mambax7/smartfaq

View on GitHub

Showing 374 of 649 total issues

Avoid too many return statements within this function.
Open

            return k;
Severity: Major
Found in assets/js/overlib/overlib_cssstyle.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return k;
    Severity: Major
    Found in assets/js/overlib/overlib_cssstyle.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return k;
      Severity: Major
      Found in assets/js/overlib/overlib_cssstyle.js - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return false;
        Severity: Major
        Found in include/functions.image.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                  return false;
          Severity: Major
          Found in include/functions.image.php - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return k;
            Severity: Major
            Found in assets/js/overlib/overlib_cssstyle.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return k;
              Severity: Major
              Found in assets/js/overlib/overlib_cssstyle.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return k;
                Severity: Major
                Found in assets/js/overlib/overlib_cssstyle.js - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return true;
                  Severity: Major
                  Found in class/AnswerHandler.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $ret;
                    Severity: Major
                    Found in class/FaqHandler.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return true;
                      Severity: Major
                      Found in class/FaqHandler.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return true;
                        Severity: Major
                        Found in class/CategoryHandler.php - About 30 mins to fix

                          Function olMouseMove has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function olMouseMove(e) {
                              var e = (e) ? e : event;
                              if (e.pageX) {
                                  o3_x = e.pageX;
                                  o3_y = e.pageY;
                          Severity: Minor
                          Found in assets/js/overlib/mini/overlib_mini.js - About 25 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 registerPostParseFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function registerPostParseFunction(fn) {
                              if (isFunction(fn)) {
                                  if (typeof postParse == 'undefined') postParse = new Array();
                                  if (typeof fn == 'object') {
                                      postParse = postParse.concat(fn);
                          Severity: Minor
                          Found in assets/js/overlib/overlib.js - About 25 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 registerCmdLineFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function registerCmdLineFunction(fn) {
                              if (isFunction(fn)) {
                                  if (typeof cmdLine == 'undefined') cmdLine = new Array();
                                  if (typeof fn == 'object') {
                                      cmdLine = cmdLine.concat(fn);
                          Severity: Minor
                          Found in assets/js/overlib/mini/overlib_mini.js - About 25 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 parseCmdLine has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function parseCmdLine(pf, i, args) {
                              if (typeof cmdLine != 'undefined' && cmdLine.length) {
                                  for (var k = 0; k < cmdLine.length; k++) {
                                      var j = cmdLine[k](pf, i, args);
                                      if (j > -1) {
                          Severity: Minor
                          Found in assets/js/overlib/mini/overlib_mini.js - About 25 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 registerRunTimeFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function registerRunTimeFunction(fn) {
                              if (isFunction(fn)) {
                                  if (typeof runTime == 'undefined') runTime = new Array();
                                  if (typeof fn == 'object') {
                                      runTime = runTime.concat(fn);
                          Severity: Minor
                          Found in assets/js/overlib/mini/overlib_mini.js - About 25 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 registerPostParseFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function registerPostParseFunction(fn) {
                              if (isFunction(fn)) {
                                  if (typeof postParse == 'undefined') postParse = new Array();
                                  if (typeof fn == 'object') {
                                      postParse = postParse.concat(fn);
                          Severity: Minor
                          Found in assets/js/overlib/mini/overlib_mini.js - About 25 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 checkAnchorObject has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function checkAnchorObject() {
                              var w = o3_anchor;
                              if (w) {
                                  if (!(mrkObj = getAnchorObjectRef(w))) {
                                      if (o3_noanchorwarn) {
                          Severity: Minor
                          Found in assets/js/overlib/mini/overlib_anchor_mini.js - About 25 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 parseCmdLine has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function parseCmdLine(pf, i, args) {
                              if (typeof cmdLine != 'undefined' && cmdLine.length) {
                                  for (var k = 0; k < cmdLine.length; k++) {
                                      var j = cmdLine[k](pf, i, args);
                                      if (j > -1) {
                          Severity: Minor
                          Found in assets/js/overlib/overlib.js - About 25 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

                          Severity
                          Category
                          Status
                          Source
                          Language