Skip to content

Commit

Permalink
Merge pull request #34 from Sweetchuck/update-robo-git
Browse files Browse the repository at this point in the history
Update sweetchuck/robo-git
  • Loading branch information
Sweetchuck authored Nov 24, 2018
2 parents d1a5d3b + 9fa4982 commit de2bf02
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
11 changes: 10 additions & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ public function lint(): CollectionBuilder
->addTask($this->getTaskPhpcsLint());
}

public function lintPhpcs(): CollectionBuilder
{
return $this->getTaskPhpcsLint();
}

protected function errorOutput(): ?OutputInterface
{
$output = $this->output();
Expand Down Expand Up @@ -420,12 +425,16 @@ protected function getTaskPhpcsLint(): CollectionBuilder
->addTask($this
->taskPhpcsParseXml()
->setAssetNamePrefix('phpcsXml.'))
->addTask($this
->taskGitListStagedFiles()
->setPaths(['*.php']))
->addTask($this
->taskGitReadStagedFiles()
->setCommandOnly(true)
->deferTaskConfiguration('setPaths', 'phpcsXml.files'))
->deferTaskConfiguration('setPaths', 'fileNames'))
->addTask($this
->taskPhpcsLintInput($options)
->setOutput($this->output())
->deferTaskConfiguration('setFiles', 'files')
->deferTaskConfiguration('setIgnore', 'phpcsXml.exclude-patterns'));
}
Expand Down
15 changes: 8 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de2bf02

Please sign in to comment.