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

Fix typos and Coding standard #431

Merged
merged 1 commit into from
Jul 26, 2022
Merged

Conversation

akkspros
Copy link
Member

@akkspros akkspros commented Jul 15, 2022

fix some typos and coding standards

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.
@mukeshpanchal27 mukeshpanchal27 added [Type] Documentation Documentation to be added or enhanced Infrastructure Issues for the overall performance plugin infrastructure Good First Issue Issue particularly suitable to be worked on by new contributors no milestone PRs that do not have a defined milestone for release labels Jul 15, 2022
@mukeshpanchal27
Copy link
Member

Nice catch.

@bethanylang bethanylang self-requested a review July 15, 2022 11:30
@bethanylang bethanylang added this to Backlog in Infrastructure via automation Jul 15, 2022
@bethanylang bethanylang moved this from Backlog to Review in Infrastructure Jul 15, 2022
@@ -408,7 +408,7 @@ function perflab_render_pointer() {
?>
<script id="perflab-admin-pointer" type="text/javascript">
jQuery( function() {
// Pointer Options
// Pointer Options.
Copy link
Contributor

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.

Copy link
Member

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

Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Member

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

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @akkspros!

@mukeshpanchal27 mukeshpanchal27 added this to the 1.4.0 milestone Jul 18, 2022
@mukeshpanchal27 mukeshpanchal27 removed the no milestone PRs that do not have a defined milestone for release label Jul 18, 2022
@felixarntz felixarntz removed this from the 1.4.0 milestone Jul 26, 2022
@felixarntz felixarntz added the no milestone PRs that do not have a defined milestone for release label Jul 26, 2022
@felixarntz
Copy link
Member

Removing the milestone here since this doesn't affect end users or any external integration point.

@felixarntz felixarntz merged commit 1de2eb9 into WordPress:trunk Jul 26, 2022
Infrastructure automation moved this from Review to Done Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Issue particularly suitable to be worked on by new contributors Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release [Type] Documentation Documentation to be added or enhanced
5 participants