Skip to content

Commit

Permalink
Update the PHPMD config.
Browse files Browse the repository at this point in the history
- Add the missing cleancode ruleset.
- Suppress a static access warning because it is a factory call.
  • Loading branch information
tvbeek committed Oct 13, 2023
1 parent d33f814 commit 34c2b7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions phpmd.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<description>
GitHash ruleset
</description>
<rule ref="rulesets/cleancode.xml" />
<rule ref="rulesets/design.xml" />
<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/controversial.xml" />
Expand Down
1 change: 1 addition & 0 deletions src/HashFinders/GitProcessCommandHashFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ final class GitProcessCommandHashFinder implements GitHashFinder
{
/**
* @inheritDoc
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function findHash(string $path): GitHash
{
Expand Down

0 comments on commit 34c2b7b

Please sign in to comment.