You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1304,6 +1305,11 @@ public function registerSniffs($files, $restrictions)
1304
1305
}
1305
1306
1306
1307
$className = substr($file, ($slashPos + 1));
1308
+
1309
+
if (substr_count($className, DIRECTORY_SEPARATOR) !== 3) {
1310
+
thrownewPHP_CodeSniffer_Exception("Sniff file $className is not valid; sniff files must be located in a .../StandardName/Sniffs/CategoryName/ directory");
0 commit comments