File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ public function process(File $phpcsFile, $stackPtr)
351
351
// Also, when the comment starts with cspell: don't check the end of the
352
352
// comment.
353
353
if (preg_match ('/^\p{L}/u ' , $ commentText ) === 1
354
- && preg_match ('/(cspell|spell\-checker):/i ' , $ commentText ) === 0
354
+ && preg_match ('/(cspell|spell\-checker|spellchecker ):/i ' , $ commentText ) === 0
355
355
) {
356
356
$ commentCloser = $ commentText [(strlen ($ commentText ) - 1 )];
357
357
$ acceptedClosers = [
Original file line number Diff line number Diff line change @@ -126,3 +126,6 @@ $x = 2;
126
126
// And here as well.
127
127
// spell-checker:ignore bananarama
128
128
$ x = 3 ;
129
+ // Different keword.
130
+ // spellchecker:disable-next-line
131
+ $ x = 4 ;
Original file line number Diff line number Diff line change @@ -125,3 +125,6 @@ $x = 2;
125
125
// And here as well.
126
126
// spell-checker:ignore bananarama
127
127
$x = 3;
128
+ // Different keword.
129
+ // spellchecker:disable-next-line
130
+ $x = 4;
You can’t perform that action at this time.
0 commit comments