Skip to content

Add sniff for file name conventions #6

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

Merged
merged 15 commits into from
Apr 5, 2022
Merged

Add sniff for file name conventions #6

merged 15 commits into from
Apr 5, 2022

Conversation

jaymcp
Copy link
Member

@jaymcp jaymcp commented Mar 31, 2022

This sniff is an extension of WordPress' filename sniff, to include support for abstract classes.
If one had a file such as this:

<?php

abstract class Foo_Bar {}

WordPress' sniff would want the file name to be class-foo-bar.php.
This sniff would want the file name to be abstract-class-foo-bar.php.

There are also some cleanup operations included in this PR.

@jaymcp
Copy link
Member Author

jaymcp commented Apr 5, 2022

thanks for approving, @jrmd. i'm going to merge this. if there's any feedback forthcoming from the other reviewers, i can make follow up PRs

@jaymcp jaymcp merged commit cda8aa7 into main Apr 5, 2022
@jaymcp jaymcp deleted the feature/filename-sniff branch April 5, 2022 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants