WordPress-Coding-Standards icon indicating copy to clipboard operation
WordPress-Coding-Standards copied to clipboard

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

Open jrfnl opened this issue 2 years ago • 0 comments

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

jrfnl avatar Jul 19 '23 18:07 jrfnl