KarrLab/SynNetGen

View on GitHub

Showing 36 of 39 total issues

Function search has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

function search($file,$word,&$statsList)
{
  $index = computeIndex($word);
  if ($index!=-1) // found a valid index
  {
Severity: Minor
Found in lib/m2html/templates/brain/doxysearch.php - About 4 hrs 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 search has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

function search($file,$word,&$statsList)
{
  $index = computeIndex($word);
  if ($index!=-1) // found a valid index
  {
Severity: Minor
Found in lib/m2html/templates/frame/doxysearch.php - About 4 hrs 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 filter_results has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

function filter_results($docs,&$requiredWords,&$forbiddenWords)
{
  $filteredDocs=array();
  while (list ($key, $val) = each ($docs)) 
  {
Severity: Minor
Found in lib/m2html/templates/blue/doxysearch.php - About 4 hrs 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 search has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

function search($file,$word,&$statsList)
{
  $index = computeIndex($word);
  if ($index!=-1) // found a valid index
  {
Severity: Minor
Found in lib/m2html/templates/blue/doxysearch.php - About 4 hrs 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 filter_results has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

function filter_results($docs,&$requiredWords,&$forbiddenWords)
{
  $filteredDocs=array();
  while (list ($key, $val) = each ($docs)) 
  {
Severity: Minor
Found in lib/m2html/templates/frame/doxysearch.php - About 4 hrs 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 filter_results has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

function filter_results($docs,&$requiredWords,&$forbiddenWords)
{
  $filteredDocs=array();
  while (list ($key, $val) = each ($docs)) 
  {
Severity: Minor
Found in lib/m2html/templates/brain/doxysearch.php - About 4 hrs 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 doxysearch.php has 289 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/******************************************************************************
 *
 * $Id:$
 *
Severity: Minor
Found in lib/m2html/templates/blue/doxysearch.php - About 2 hrs to fix

    File doxysearch.php has 289 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /******************************************************************************
     *
     * $Id:$
     *
    Severity: Minor
    Found in lib/m2html/templates/frame/doxysearch.php - About 2 hrs to fix

      File doxysearch.php has 289 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /******************************************************************************
       *
       * $Id:$
       *
      Severity: Minor
      Found in lib/m2html/templates/brain/doxysearch.php - About 2 hrs to fix

        Method search has 62 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function search($file,$word,&$statsList)
        {
          $index = computeIndex($word);
          if ($index!=-1) // found a valid index
          {
        Severity: Major
        Found in lib/m2html/templates/blue/doxysearch.php - About 2 hrs to fix

          Method search has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function search($file,$word,&$statsList)
          {
            $index = computeIndex($word);
            if ($index!=-1) // found a valid index
            {
          Severity: Major
          Found in lib/m2html/templates/frame/doxysearch.php - About 2 hrs to fix

            Method search has 62 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function search($file,$word,&$statsList)
            {
              $index = computeIndex($word);
              if ($index!=-1) // found a valid index
              {
            Severity: Major
            Found in lib/m2html/templates/brain/doxysearch.php - About 2 hrs to fix

              Method main has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function main($idxfile)
              {
                if(strcmp('4.1.0', phpversion()) > 0) 
                {
                  die("Error: PHP version 4.1.0 or above required!");
              Severity: Minor
              Found in lib/m2html/templates/frame/doxysearch.php - About 1 hr to fix

                Method main has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function main($idxfile)
                {
                  if(strcmp('4.1.0', phpversion()) > 0) 
                  {
                    die("Error: PHP version 4.1.0 or above required!");
                Severity: Minor
                Found in lib/m2html/templates/brain/doxysearch.php - About 1 hr to fix

                  Method main has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function main($idxfile)
                  {
                    if(strcmp('4.1.0', phpversion()) > 0) 
                    {
                      die("Error: PHP version 4.1.0 or above required!");
                  Severity: Minor
                  Found in lib/m2html/templates/blue/doxysearch.php - About 1 hr to fix

                    Method report_results has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function report_results(&$docs)
                    {
                      echo "<table cellspacing=\"2\">\n";
                      echo "  <tr>\n";
                      echo "    <td colspan=\"2\"><h2>Search Results</h2></td>\n";
                    Severity: Minor
                    Found in lib/m2html/templates/brain/doxysearch.php - About 1 hr to fix

                      Method report_results has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function report_results(&$docs)
                      {
                        echo "<table cellspacing=\"2\">\n";
                        echo "  <tr>\n";
                        echo "    <td colspan=\"2\"><h2>Search Results</h2></td>\n";
                      Severity: Minor
                      Found in lib/m2html/templates/blue/doxysearch.php - About 1 hr to fix

                        Method report_results has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function report_results(&$docs)
                        {
                          echo "<table cellspacing=\"2\">\n";
                          echo "  <tr>\n";
                          echo "    <td colspan=\"2\"><h2>Search Results</h2></td>\n";
                        Severity: Minor
                        Found in lib/m2html/templates/frame/doxysearch.php - About 1 hr to fix

                          Method filter_results has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function filter_results($docs,&$requiredWords,&$forbiddenWords)
                          {
                            $filteredDocs=array();
                            while (list ($key, $val) = each ($docs)) 
                            {
                          Severity: Minor
                          Found in lib/m2html/templates/frame/doxysearch.php - About 1 hr to fix

                            Method filter_results has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function filter_results($docs,&$requiredWords,&$forbiddenWords)
                            {
                              $filteredDocs=array();
                              while (list ($key, $val) = each ($docs)) 
                              {
                            Severity: Minor
                            Found in lib/m2html/templates/brain/doxysearch.php - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language