24 lines
722 B
XML
24 lines
722 B
XML
<?xml version="1.0"?>
|
|
<ruleset name="Custom PHPCS Ruleset">
|
|
<description>PHPCodeSniffer configuration for PHP code analysis.</description>
|
|
|
|
<!-- Path to analyze -->
|
|
<file>src</file>
|
|
|
|
<!-- Display progress (-p), show sniff codes on violations (-s), and colorize output -->
|
|
<arg value="p"/>
|
|
<arg value="s"/>
|
|
<arg name="colors"/>
|
|
|
|
<!-- Set standard coding standard (PSR-12) -->
|
|
<rule ref="PSR12"/>
|
|
|
|
<!-- Exclude third-party vendor files and node_modules -->
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
|
|
<!-- Cache results locally to speed up subsequent runs -->
|
|
<arg name="cache" value=".phpcs.cache"/>
|
|
</ruleset>
|
|
|