codeclimate/codeclimate-phpmd

View on GitHub

Showing 6 of 6 total issues

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

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

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

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
Severity
Category
Status
Source
Language