Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jrfnl opened this issue Jul 19, 2023 · 0 comments

Comments

@jrfnl
Copy link
Member

jrfnl commented Jul 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant