Skip to content

Commit c960a5c

Browse files
committed
switch to drupal sniff
1 parent 2c99945 commit c960a5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coder_sniffer/Drupal/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function process(File $phpcsFile, $stackPtr)
9898
&& in_array($tokens[($i - 1)]['code'], [T_WHITESPACE, T_COMMA]) === false
9999
) {
100100
$error = 'Selectors must be on a single line';
101-
// Cspell:ignore SeletorSingleLine .
101+
// cspell:ignore SeletorSingleLine
102102
$fix = $phpcsFile->addFixableError($error, $i, 'SeletorSingleLine');
103103
if ($fix === true) {
104104
$phpcsFile->fixer->replaceToken($i, str_replace($phpcsFile->eolChar, ' ', $tokens[$i]['content']));

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<rule ref="Squiz.Commenting.BlockComment"/>
3939
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
4040
<rule ref="Squiz.Commenting.EmptyCatchComment"/>
41-
<rule ref="Squiz.Commenting.InlineComment"/>
4241
<rule ref="Squiz.Commenting.LongConditionClosingComment"/>
4342
<rule ref="Squiz.Commenting.PostStatementComment"/>
4443
<rule ref="Squiz.Commenting.VariableComment"/>
@@ -156,5 +155,6 @@
156155

157156
<!-- Additional rules from Drupal that we want. -->
158157
<rule ref="coder_sniffer/Drupal/Sniffs/Classes/UnusedUseStatementSniff.php"/>
158+
<rule ref="coder_sniffer/Drupal/Sniffs/Commenting/InlineCommentSniff.php"/>
159159

160160
</ruleset>

0 commit comments

Comments
 (0)