From 34c2b7b95ccb8ebda1c9ae6cb7844c5d22cb02e3 Mon Sep 17 00:00:00 2001 From: Tobias van Beek Date: Fri, 13 Oct 2023 09:57:25 +0200 Subject: [PATCH] Update the PHPMD config. - Add the missing cleancode ruleset. - Suppress a static access warning because it is a factory call. --- phpmd.xml.dist | 1 + src/HashFinders/GitProcessCommandHashFinder.php | 1 + 2 files changed, 2 insertions(+) diff --git a/phpmd.xml.dist b/phpmd.xml.dist index 5108429..3682c69 100644 --- a/phpmd.xml.dist +++ b/phpmd.xml.dist @@ -7,6 +7,7 @@ GitHash ruleset + diff --git a/src/HashFinders/GitProcessCommandHashFinder.php b/src/HashFinders/GitProcessCommandHashFinder.php index a4174a7..9421807 100644 --- a/src/HashFinders/GitProcessCommandHashFinder.php +++ b/src/HashFinders/GitProcessCommandHashFinder.php @@ -14,6 +14,7 @@ final class GitProcessCommandHashFinder implements GitHashFinder { /** * @inheritDoc + * @SuppressWarnings(PHPMD.StaticAccess) */ public function findHash(string $path): GitHash {