-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix typos and Coding standard #431
Conversation
Nice catch. |
@@ -408,7 +408,7 @@ function perflab_render_pointer() { | |||
?> | |||
<script id="perflab-admin-pointer" type="text/javascript"> | |||
jQuery( function() { | |||
// Pointer Options | |||
// Pointer Options. |
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.
This period is unnecessary, so let's remove.
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.
I think part of the standard is that all one-line comments end with a period.
Comments come before the code to which they refer, and should always be preceded by a blank line. Capitalize the first letter of the comment, and include a period at the end when writing full sentences
https://developer.wordpress.org/coding-standards/wordpress-coding-standards/javascript/#comments
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.
Hmm, interesting @mitogh! I guess I'd argue that this is not a "full sentence," but of course want to follow the coding standards.
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.
Yeah, it's correct that basically any doc comment needs to end with a period per WP doc standards.
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.
Hmm, interesting @mitogh! I guess I'd argue that this is not a "full sentence," but of course want to follow the coding standards.
Right, this is mostly because the way the standard assumes what "full sentence" means as is just any complete line. @bethanylang
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.
Thank you @akkspros!
Removing the milestone here since this doesn't affect end users or any external integration point. |
fix some typos and coding standards
Checklist
[Focus]
orInfrastructure
label.[Type]
label.no milestone
label.