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

New sniff to enforce tag order in docblocks #38

Open
fredden opened this issue Jul 25, 2023 · 1 comment
Open

New sniff to enforce tag order in docblocks #38

fredden opened this issue Jul 25, 2023 · 1 comment

Comments

@fredden
Copy link
Member

fredden commented Jul 25, 2023

As mentioned here: PHPCompatibility/PHPCompatibility#1586 (comment)
The convention is for @dataProvider tags to be before @param tags and after the description. This can and should be enforced with a sniff.

@jrfnl
Copy link
Member

jrfnl commented Jul 25, 2023

As per PHPCompatibility/PHPCompatibility#1586 (comment) :

There are no good sniffs available to enforce this at the moment. Once I have some more time again, it's on my never-ending to do list to write better docs sniffs and make those available via PHPCSExtra.

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

2 participants