src/Robo/Commands/Validate/TwigCommand.php
public function lintFileList($file_list) {
    $this->say("Linting twig 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.twig.filesets');
    $filesets = $fileset_manager->getFilesets($fileset_ids, TRUE);
    foreach ($filesets as $fileset_id => $fileset) {
      $filesets[$fileset_id] = $fileset_manager->filterFilesByFileset($files, $fileset);
    }
    $this->executeTwigLintCommandAgainstFilesets($filesets);
  }
public function lintFileList($file_list) {
    $this->say("Linting twig 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.twig.filesets');
    $filesets = $fileset_manager->getFilesets($fileset_ids, TRUE);
    foreach ($filesets as $fileset_id => $fileset) {
      $filesets[$fileset_id] = $fileset_manager->filterFilesByFileset($files, $fileset);
    }
    $this->executeTwigLintCommandAgainstFilesets($filesets);
  }
public function lintFileList ( $ file_list ) { $ this -> say ( "Linting twig 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.twig.filesets' ) ; $ filesets = $ fileset_manager -> getFilesets ( $ fileset_ids , TRUE ) ; foreach ( $ filesets as $ fileset_id => $ fileset ) { $ filesets [ $ fileset_id ] = $ fileset_manager -> filterFilesByFileset ( $ files , $ fileset ) ; } $ this -> executeTwigLintCommandAgainstFilesets ( $ filesets ) ; }
Executes Twig validator against a list of files, if in twig.filesets.

@command tests:twig:lint:files
@aliases ttlf

@param string $file_list
A list of files to scan, separated by \n.
Executes Twig validator against a list of files if in twig . filesets .