Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Oct 2, 2023
1 parent bc044d5 commit 0af1314
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/Commands/ValidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,14 @@ protected function execute(InputInterface $input, OutputInterface $output)

return 1;
}
} elseif ($this->isGlobPatternFileSetable($globPatternFile)) {
} elseif($this->isGlobPatternFileSetable($globPatternFile)) {
try {
$this->analyser->setGlobPatternFromFile($globPatternFile);
if ($this->isDefaultGlobPatternFilePresent()) {
$this->analyser->setGlobPatternFromFile($this->defaultLpvFile);
}
if ($globPatternFile) {
$this->analyser->setGlobPatternFromFile($globPatternFile);
}
} catch (NonExistentGlobPatternFile $e) {
$warning = "Warning: The provided glob pattern file "
. "'$globPatternFile' doesn't exist.";
Expand Down
3 changes: 2 additions & 1 deletion tests/Commands/ValidateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,8 @@ public function givenGlobPatternTakesPrecedenceOverDefaultGlobPatternFile()
$artifactFilenames = [
'.buildignore',
'phpspec.yml.dist',
'Phulpfile'
'Phulpfile',
'.lpv'
];

$this->createTemporaryFiles(
Expand Down

0 comments on commit 0af1314

Please sign in to comment.