-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Generic/PHP/Syntax: add XML documentation #175
Generic/PHP/Syntax: add XML documentation #175
Conversation
8d08d41
to
93e5c44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rodrigoprimo Thanks for this PR. Looking good.
I'm unsure about what to use in the
title
attribute. I followed the convention and used the sniff name, but justSyntax
is not very clear. Happy to leave it as is if that is ok. An alternative that I considered using isPHP Syntax
.
I 100% agree with you. PHP Syntax
would be better.
93e5c44
to
2245a6b
Compare
Thanks for the review, @jrfnl. I updated the I amended the original commit instead of creating new ones per your comment in a previous PR: #163 (review). Please let me know if, in this case, you would have preferred new commits. This PR is ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes @rodrigoprimo ! LGTM.
I amended the original commit instead of creating new ones per your comment in a previous PR: #163 (review). Please let me know if, in this case, you would have preferred new commits.
As a general rule of thumb:
- For very small punctuation/doc fixes, amending is fine to keep the history clean.
- For more significant/functional changes, a separate commit is preferred as that allows for a reviewer to see more easily what has been changed in the update.
When in doubt, use an extra commit (and I can then decide whether to squash the commits on merge or leave it as-is).
Description
This PR adds documentation for the Generic.PHP.Syntax sniff.
I'm unsure about what to use in the
title
attribute. I followed the convention and used the sniff name, but justSyntax
is not very clear. Happy to leave it as is if that is ok. An alternative that I considered using isPHP Syntax
.Suggested changelog entry
Add documentation for the Generic.PHP.Syntax sniff
Related issues/external references
Part of #148
Types of changes
PR checklist