2 namespace Robo\Task\Composer;
10 * $this->taskComposerValidate()->run();
14 class Validate extends Base
19 protected $action = 'validate';
24 public function noCheckAll($noCheckAll = true)
27 $this->option('--no-check-all');
35 public function noCheckLock($noCheckLock = true)
38 $this->option('--no-check-lock');
46 public function noCheckPublish($noCheckPublish = true)
48 if ($noCheckPublish) {
49 $this->option('--no-check-publish');
57 public function withDependencies($withDependencies = true)
59 if ($withDependencies) {
60 $this->option('--with-dependencies');
68 public function strict($strict = true)
71 $this->option('--strict');
81 $command = $this->getCommand();
82 $this->printTaskInfo('Validating composer.json: {command}', ['command' => $command]);
83 return $this->executeCommand($command);