Infrastructure/11293 phpcs rule fullstop#13148
Conversation
📦 Build files for b1fcdc7:
🎭 Playwright reports for b1fcdc7: |
| * ## EXAMPLES | ||
| * | ||
| * wp google-site-kit auth disconnect --id=11 | ||
| * wp google-site-kit auth disconnect --id=11. |
There was a problem hiding this comment.
The rule should be disabled for this comment, and this change reverted.
| * | ||
| * wp google-site-kit reset | ||
| * wp google-site-kit reset --persistent | ||
| * wp google-site-kit reset --persistent. |
There was a problem hiding this comment.
The rule should be disabled for this comment, and this change reverted.
| // which requires authorization, however script_loader_tag is also filtered | ||
| // to apply script_execution attributes for all users, so it must be excluded here. | ||
| // 'script_loader_tag', | ||
| // 'script_loader_tag',. |
There was a problem hiding this comment.
Let's remove this commented out line:
| // 'script_loader_tag',. |
| $config['headers']['User-Agent'] = Google_Proxy::get_application_name(); | ||
|
|
||
| /** This filter is documented in wp-includes/class-http.php */ | ||
| /** This filter is documented in wp-includes/class-http.php.*/ |
There was a problem hiding this comment.
The rule should preserve trailing whitespace for single-line docblocks, i.e. this should be fixed as follows:
| /** This filter is documented in wp-includes/class-http.php.*/ | |
| /** This filter is documented in wp-includes/class-http.php. */ |
| } | ||
|
|
||
| /** This filter is documented in wp-login.php */ | ||
| /** This filter is documented in wp-login.php.*/ |
There was a problem hiding this comment.
As above:
| /** This filter is documented in wp-login.php.*/ | |
| /** This filter is documented in wp-login.php. */ |
| * @package Google\Site_Kit\Sniffs\Commenting | ||
| */ | ||
|
|
||
| namespace Google\Site_Kit\Sniffs\Commenting; |
There was a problem hiding this comment.
This should use the same namespace as RequireDocTagDescriptionSniff.
| namespace Google\Site_Kit\Sniffs\Commenting; | |
| namespace Google\Site_Kit\PHPCS\Sniffs\Commenting; |
| * @param string $content Token content. | ||
| * @return string Updated token content. | ||
| */ | ||
| private function append_full_stop_preserve_newline( $content ) { |
There was a problem hiding this comment.
I think this method needs attention to preserve the whitespace I flagged in my comments above.
|
Thank you @techanvil for reviewing the PR. I have updated the rule to preserve the single whitespace in single line comment. |
| * | ||
| * ## EXAMPLES | ||
| * | ||
| * phpcs:ignore PHPCS.Commenting.DocCommentFullStop.MissingFullStop -- Command examples should not include trailing punctuation. |
There was a problem hiding this comment.
Can you move this phpcs:ignore line above the start of the /** block? It interferes with the doc readability where it is.
| * ## EXAMPLES | ||
| * | ||
| * wp google-site-kit reset | ||
| * phpcs:ignore PHPCS.Commenting.DocCommentFullStop.MissingFullStop -- Command examples should not include trailing punctuation. |
There was a problem hiding this comment.
As above, please move this above the /** start of the block.
|
Thanks @techanvil |
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist