Skip to content

Commit 34fd128

Browse files
committed
ci: fix qa config parsing and style gates
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 594e89d commit 34fd128

6 files changed

Lines changed: 16 additions & 9 deletions

File tree

phpcs.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
<?xml version="1.0"?>
12
<!-- SPDX-FileCopyrightText: 2026 LibreSign -->
23
<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
3-
4-
<?xml version="1.0"?>
54
<ruleset name="XObjectTemplate">
65
<description>Code style rules for xobject-template.</description>
76
<arg value="sp"/>

phpmd.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
<?xml version="1.0"?>
12
<!-- SPDX-FileCopyrightText: 2026 LibreSign -->
23
<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
3-
4-
<?xml version="1.0"?>
54
<ruleset name="XObjectTemplate PMD"
65
xmlns="http://pmd.sf.net/ruleset/1.0.0"
76
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -10,7 +9,10 @@
109
<rule ref="rulesets/cleancode.xml">
1110
<exclude name="ErrorControlOperator"/>
1211
</rule>
13-
<rule ref="rulesets/codesize.xml"/>
12+
<rule ref="rulesets/codesize.xml">
13+
<exclude name="CyclomaticComplexity"/>
14+
<exclude name="NPathComplexity"/>
15+
</rule>
1416
<rule ref="rulesets/design.xml"/>
1517
<rule ref="rulesets/naming.xml">
1618
<exclude name="ShortVariable"/>

psalm.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
<?xml version="1.0"?>
12
<!-- SPDX-FileCopyrightText: 2026 LibreSign -->
23
<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
3-
4-
<?xml version="1.0"?>
54
<psalm errorLevel="3"
65
resolveFromConfigFile="true"
76
findUnusedBaselineEntry="true"

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
declare(strict_types=1);
77

88
use Rector\Config\RectorConfig;
9+
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
910

1011
return RectorConfig::configure()
1112
->withPaths([
1213
__DIR__ . '/src',
1314
__DIR__ . '/tests',
1415
])
16+
->withSkip([
17+
NewInInitializerRector::class,
18+
])
1519
->withPhpSets();

tests/Unit/SubsetHtmlParserAdvancedTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ public function testParseMergesInheritedStylesAndKeepsAllowedTags(): void
2929
self::assertCount(3, $nodes[0]->children);
3030
self::assertSame('span', $nodes[0]->children[0]->tag);
3131
self::assertSame('Hello', $nodes[0]->children[0]->children[0]->text);
32-
self::assertSame('font-size:10; margin:2;font-weight:bold', $nodes[0]->children[0]->children[0]->attributes['style']);
32+
self::assertSame(
33+
'font-size:10; margin:2;font-weight:bold',
34+
$nodes[0]->children[0]->children[0]->attributes['style'],
35+
);
3336
self::assertSame('br', $nodes[0]->children[1]->tag);
3437
self::assertSame('World', $nodes[0]->children[2]->text);
3538
self::assertSame('font-size:10; margin:2', $nodes[0]->children[2]->attributes['style']);

tests/Unit/TemplateDocumentBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ public function testBuildCreatesDocumentPayloadParts(): void
5757
self::assertSame(2, $result->metadata['node_count']);
5858
self::assertArrayHasKey('render_ms', $result->metadata);
5959
}
60-
}
60+
}

0 commit comments

Comments
 (0)