We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45eacdb commit 330ab09Copy full SHA for 330ab09
tests/runner.php
@@ -21,7 +21,14 @@ function processDir($dirPath)
21
}
22
23
$fileContent = file_get_contents($dirPath . $file);
24
- $snifferOutput = shell_exec(__DIR__ . '/../bin/php-code-validator "' . $dirPath . $file . '"');
+ $snifferOutput = shell_exec(
25
+ sprintf(
26
+ "%s -w -p -s --standard=%s %s",
27
+ escapeshellcmd(__DIR__ . '/../vendor/bin/phpcs'),
28
+ escapeshellarg(__DIR__ . '/../ruleset.xml'),
29
+ escapeshellarg($dirPath . $file)
30
+ )
31
+ );
32
33
// expectedPass
34
if (preg_match('|//\s@expectedPass$|m', $fileContent)) {
0 commit comments