Skip to content

Commit df29e1b

Browse files
committed
The check for underscore symbol in LESS was removed
1 parent 4702b8a commit df29e1b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

dev/tests/static/framework/Magento/Sniffs/Less/ClassNamingSniff.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,5 @@ public function process(File $phpcsFile, $stackPtr)
6262
if (preg_match_all('/[^a-z0-9\-_]/U', $className, $matches)) {
6363
$phpcsFile->addError('Class name contains not allowed symbols', $stackPtr, 'NotAllowedSymbol', $matches);
6464
}
65-
66-
if (strpos($className, self::STRING_HELPER_CLASSES_PREFIX) !== false
67-
&& strpos($className, self::STRING_ALLOWED_UNDERSCORES) === false
68-
) {
69-
$phpcsFile->addError('"_" symbol allowed only for helper classes', $stackPtr, 'UnderscoreSymbol');
70-
}
7165
}
7266
}

0 commit comments

Comments
 (0)