codeclimate/codeclimate-phpmd

View on GitHub

Showing 8 of 8 total issues

Avoid using undefined variables such as '$checks' which will lead to PHP notices.
Open

        $points = self::$checks[$checkName][1];
Severity: Minor
Found in Category.php by phpmd

Avoid using undefined variables such as '$checks' which will lead to PHP notices.
Open

        $category = self::$checks[$checkName][0];
Severity: Minor
Found in Category.php by phpmd

Avoid variables with short names like $r. Configured minimum length is 3.
Open

        foreach ($configRulesets as &$r) {
Severity: Minor
Found in Runner.php by phpmd

Avoid using static access to class '\PHPMD\Category\Category' in method 'renderReport'.
Open

            $points = Category::pointsFor($checkName, $metric);
Severity: Minor
Found in JSONRenderer.php by phpmd

Avoid using static access to class '\PHPMD\Category\Category' in method 'testCategoryFor'.
Open

        $category = Category::categoryFor("Design/EvalExpression");
Severity: Minor
Found in tests/CategoryTest.php by phpmd

Avoid using static access to class '\PHPMD\Category\Category' in method 'renderReport'.
Open

            $category = Category::categoryFor($checkName);
Severity: Minor
Found in JSONRenderer.php by phpmd

Avoid using static access to class '\PHPMD\Category\Category' in method 'renderReport'.
Open

            $content = Category::documentationFor($checkName);
Severity: Minor
Found in JSONRenderer.php by phpmd

The method queueDirectory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $this->queuePaths($dir, $prefix, $this->config['exclude_paths']);
        }
Severity: Minor
Found in Runner.php by phpmd
Severity
Category
Status
Source
Language