Skip to content

Commit

Permalink
Remove PHPCS bootstrap file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Wu committed Oct 9, 2018
1 parent bdf56f4 commit 7e74296
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 53 deletions.
3 changes: 1 addition & 2 deletions src/Robo/Commands/Validate/PhpcsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ protected function doSniffFileList(array $files) {
->run();

$bin = $this->getConfigValue('composer.bin') . '/phpcs';
$bootstrap = __DIR__ . "/phpcs-validate-files-bootstrap.php";
$command = "'$bin' --file-list='$temp_path' --bootstrap='$bootstrap' -l";
$command = "'$bin' --file-list='$temp_path' -l";
if ($this->output()->isVerbose()) {
$command .= ' -v';
}
Expand Down
50 changes: 0 additions & 50 deletions src/Robo/Commands/Validate/phpcs-validate-files-bootstrap.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/phpunit/Blt/PhpCsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PhpCsTest extends BltTestBase {
* @dataProvider testPhpCsFilesBootstrapProvider
*/
public function testPhpCsFilesBootstrap($filename, $needle, $contains) {
$process = new Process("./vendor/bin/phpcs $filename --bootstrap=src/Robo/Commands/Validate/phpcs-validate-files-bootstrap.php -v");
$process = new Process("./vendor/bin/phpcs -v $filename");
$process->setWorkingDirectory($this->bltDirectory);
$process->run();
$output = $process->getOutput();
Expand Down

0 comments on commit 7e74296

Please sign in to comment.