public function lintFileList($file_list) {
    $this->say("Linting YAML files...");

    $files = explode("\n", $file_list);

    /** @var \Acquia\Blt\Robo\Filesets\FilesetManager $fileset_manager */
    $fileset_manager = $this->getContainer()->get('filesetManager');
    $fileset_ids = $this->getConfigValue('validate.yaml.filesets');
    $filesets = $fileset_manager->getFilesets($fileset_ids);

    $bin = $this->getConfigValue('composer.bin');
    $command = "'$bin/yaml-cli' lint '%s'";
    foreach ($filesets as $fileset_id => $fileset) {
      $filesets[$fileset_id] = $fileset_manager->filterFilesByFileset($files, $fileset);
    }

    $this->executeCommandAgainstFilesets($filesets, $command);
  }
public function lintFileList($file_list) {
    $this->say("Linting YAML files...");

    $files = explode("\n", $file_list);

    /** @var \Acquia\Blt\Robo\Filesets\FilesetManager $fileset_manager */
    $fileset_manager = $this->getContainer()->get('filesetManager');
    $fileset_ids = $this->getConfigValue('validate.yaml.filesets');
    $filesets = $fileset_manager->getFilesets($fileset_ids);

    $bin = $this->getConfigValue('composer.bin');
    $command = "'$bin/yaml-cli' lint '%s'";
    foreach ($filesets as $fileset_id => $fileset) {
      $filesets[$fileset_id] = $fileset_manager->filterFilesByFileset($files, $fileset);
    }

    $this->executeCommandAgainstFilesets($filesets, $command);
  }
public function lintFileList ( $ file_list ) { $ this -> say ( "Linting YAML files..." ) ; $ files = explode ( "\n" , $ file_list ) ; /** @var \Acquia\Blt\Robo\Filesets\FilesetManager $fileset_manager */ $ fileset_manager = $ this -> getContainer ( ) -> get ( 'filesetManager' ) ; $ fileset_ids = $ this -> getConfigValue ( 'validate.yaml.filesets' ) ; $ filesets = $ fileset_manager -> getFilesets ( $ fileset_ids ) ; $ bin = $ this -> getConfigValue ( 'composer.bin' ) ; $ command = "'$bin/yaml-cli' lint '%s'" ; foreach ( $ filesets as $ fileset_id => $ fileset ) { $ filesets [ $ fileset_id ] = $ fileset_manager -> filterFilesByFileset ( $ files , $ fileset ) ; } $ this -> executeCommandAgainstFilesets ( $ filesets , $ command ) ; }
Executes YAML validator against files, if in validate.yaml.filesets.

@command tests:yaml:lint:files
@aliases tylf

@param string $file_list
A list of files to scan, separated by \n.
Executes YAML validator against files if in validate . yaml . filesets .