From e62d5da55e7d6b31759b6b4786c635f431956e38 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Thu, 22 Apr 2021 11:50:37 +0200 Subject: [PATCH] Only parse .rst --- src/Command/CheckDocsCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/CheckDocsCommand.php b/src/Command/CheckDocsCommand.php index c471ac5..5402a22 100644 --- a/src/Command/CheckDocsCommand.php +++ b/src/Command/CheckDocsCommand.php @@ -148,11 +148,12 @@ private function prepareParseQueue(InputInterface $input): ParseQueue $parseQueue = new ParseQueue(); foreach ($files as $filename) { - // Remove ".rst" + // Only parse .rst files if ('.rst' === substr($filename, -4)) { + // Remove ".rst" $filename = substr($filename, 0, -4); + $parseQueue->addFile(ltrim($filename, '/'), true); } - $parseQueue->addFile(ltrim($filename, '/'), true); } return $parseQueue;