Skip to content

Commit 9239505

Browse files
committed
fix: ignore test classes in phpmd ruleset
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 5db2b57 commit 9239505

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

phpmd.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<exclude name="CyclomaticComplexity"/>
1414
<exclude name="NPathComplexity"/>
1515
</rule>
16+
<exclude-pattern>.*tests/.*Test\.php$</exclude-pattern>
1617
<rule ref="rulesets/design.xml"/>
1718
<rule ref="rulesets/naming.xml">
1819
<exclude name="ShortVariable"/>

tests/Unit/Layout/LinearLayoutEngineTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
use ReflectionMethod;
1616
use ReflectionProperty;
1717

18-
/**
19-
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
20-
*/
2118
final class LinearLayoutEngineTest extends TestCase
2219
{
2320
public function testLayoutSupportsNestedNodesImagesAndStyles(): void

0 commit comments

Comments
 (0)