<?xml version="1.0"?>
<ruleset name="php-vips">
    <!-- Set a description for this ruleset -->
    <description>php-vips coding standard. Inherits from PSR-2.</description>

    <!-- Check all files in this directory and the directories below it -->
    <file>.</file>

    <!-- Ignore Composer dependencies -->
    <exclude-pattern>vendor/</exclude-pattern>

    <!-- Ignore generated docs -->
    <exclude-pattern>docs/</exclude-pattern>

    <!-- Display progress -->
    <arg value="p"/>

    <!-- Only check PHP files -->
    <arg name="extensions" value="php"/>

    <!-- Include the whole PSR-2 standard -->
    <rule ref="PSR2"/>

    <!-- Exclude this rule for code examples -->
    <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
        <exclude-pattern>examples/</exclude-pattern>
    </rule>

    <!-- File is generated automatically -->
    <rule ref="Generic.Files.LineLength">
        <exclude-pattern>src/ImageAutodoc.php</exclude-pattern>
    </rule>
</ruleset>
