Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sniffs/Commenting/SingleLineCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public function process( File $phpcs_file, $stack_position ) {
*/
if (
strpos( $check_content, 'phpcs:' ) !== false ||
strpos( $check_content, '@codeCoverageIgnore' ) !== false
strpos( $check_content, '@codeCoverageIgnore' ) !== false ||
strpos( $check_content, '@phpstan' ) !== false
) {

return;
Expand Down
4 changes: 4 additions & 0 deletions Tests/Commenting/SingleLineCommentUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

$a = 1; // trailing comment.

// @phpstan-ignore-next-line identifier -- reason

// @phpstan-ignore identifier -- reason

/*
* This spans
* multiple lines.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bsu/BSUWordPressCS",
"version": "1.3.0",
"version": "1.3.1",
"description": "Custom PHPCS sniffs for BSU WordPress standards",
"author": "BSU|NTC Web Services",
"license": "Copyright Web Services, Bemidji State University - All Rights Reserved. Unauthorized copying of any files or code in this package, via any medium is strictly prohibited.",
Expand Down