Skip to content

Handbook: when using aliases for imports, these should follow the naming conventions #2306

@jrfnl

Description

@jrfnl

Is your feature request related to a problem?

A sniff should be added to address the following handbook rule:

Aliases can be used to prevent name collisions (two classes in different namespaces using the same class name).
When using aliases, make sure the aliases follow the WordPress naming convention and are unique.

Ref: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#using-import-use-statements

Additional context (optional)

:Related issue in PHPCSExtra: PHPCSStandards/PHPCSExtra#232

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions