.phan/plugins/WhitespacePlugin.php

Summary

Maintainability
A
1 hr
Test Coverage

Method afterAnalyzeFile has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function afterAnalyzeFile(
        CodeBase $code_base,
        Context $context,
        string $file_contents,
        Node $node
Severity: Minor
Found in .phan/plugins/WhitespacePlugin.php - About 1 hr to fix

    Constant WhitespaceTrailing should be defined in uppercase
    Open

        public const WhitespaceTrailing = 'PhanPluginWhitespaceTrailing';
    Severity: Minor
    Found in .phan/plugins/WhitespacePlugin.php by phpmd

    ConstantNamingConventions

    Since: 0.2

    Class/Interface constant names should always be defined in uppercase.

    Example

    class Foo {
        const MY_NUM = 0; // ok
        const myTest = ""; // fail
    }

    Source https://phpmd.org/rules/naming.html#constantnamingconventions

    Constant Tab should be defined in uppercase
    Open

        public const Tab = 'PhanPluginWhitespaceTab';
    Severity: Minor
    Found in .phan/plugins/WhitespacePlugin.php by phpmd

    ConstantNamingConventions

    Since: 0.2

    Class/Interface constant names should always be defined in uppercase.

    Example

    class Foo {
        const MY_NUM = 0; // ok
        const myTest = ""; // fail
    }

    Source https://phpmd.org/rules/naming.html#constantnamingconventions

    Constant CarriageReturn should be defined in uppercase
    Open

        public const CarriageReturn = 'PhanPluginWhitespaceCarriageReturn';
    Severity: Minor
    Found in .phan/plugins/WhitespacePlugin.php by phpmd

    ConstantNamingConventions

    Since: 0.2

    Class/Interface constant names should always be defined in uppercase.

    Example

    class Foo {
        const MY_NUM = 0; // ok
        const myTest = ""; // fail
    }

    Source https://phpmd.org/rules/naming.html#constantnamingconventions

    There are no issues that match your filters.

    Category
    Status