diff --git a/src/AuditIgnoreReportCommand.php b/src/AuditIgnoreReportCommand.php index 1883305be2b484b10f9fd42007c3d6ddca494148..ac131e50e802586d53e3958f1b37be442104437b 100644 --- a/src/AuditIgnoreReportCommand.php +++ b/src/AuditIgnoreReportCommand.php @@ -19,7 +19,7 @@ class AuditIgnoreReportCommand extends BaseCommand { protected function configure(): void { parent::configure(); $this - ->setName('lakedrops:auditignorereport') + ->setName('lakedrops:audit-ignore-report') ->setDescription('Report about status of all ignored CVEs during audit.'); } diff --git a/src/Handler.php b/src/Handler.php index 7c8a64382c9463734ca501b30991dfd25e8da12e..bc858d44878a2b7feff25cb3478ec5c06873bbb3 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -188,13 +188,17 @@ class Handler extends BaseHandler { } } + /** + * Generates a report for ignored projects during audit. + * + * @throws \GuzzleHttp\Exception\GuzzleException + */ public function auditIgnoreReport(): void { $audit = $this->composer->getConfig()->get('audit'); if (empty($audit['ignore'])) { $this->io->info('There are no ignored CVEs in the configuration.'); return; } - /** @var \GuzzleHttp\Client $client */ $client = new Client(); $ignore = $audit['ignore']; $report = [];