WordPress-Coding-Standards
WordPress-Coding-Standards copied to clipboard
Handbook: when using aliases for imports, these should follow the naming conventions
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: https://github.com/PHPCSStandards/PHPCSExtra/issues/232