Skip to content

Commit a2b38ba

Browse files
jbagsikcursoragent
andcommitted
Align verapdf Codacy with Pint for empty constructor braces
Exclude Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore in package phpcs.xml so Codacy accepts Pint's single_line_empty_body `) {}` style in VeraPdfResult without fighting the formatter. Closes mooxphp/verapdf#8 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0b23ff7 commit a2b38ba

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/verapdf/phpcs.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PHP_CodeSniffer">
3+
<description>PHP_CodeSniffer configuration for moox/verapdf (aligned with Laravel Pint single_line_empty_body).</description>
4+
<rule ref="PSR2">
5+
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
6+
</rule>
7+
<file>src</file>
8+
<file>tests</file>
9+
<exclude-pattern>*/vendor/*</exclude-pattern>
10+
</ruleset>

0 commit comments

Comments
 (0)