<?xml version="1.0"?>
    <ruleset name="Appwrite Standard" namespace="Appwrite">
    <rule ref="PSR12"/>
    <file>./app</file>
    <file>./src</file>
    <file>./tests</file>
    <ini name="memory_limit" value="4096M"/>
    <!-- Exclude SDK's for performance reasons -->
    <exclude-pattern>./app/sdks</exclude-pattern>
    <!-- Ignore max line width -->
    <rule ref="Generic.Files.LineLength">
        <exclude-pattern>*</exclude-pattern>
    </rule>
    <!-- Allow Side Effects on root level of files -->
    <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
        <exclude-pattern>*</exclude-pattern>
    </rule>
    <!-- Exclude namespace check for ./app directory -->
    <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
        <exclude-pattern>./app</exclude-pattern>
    </rule>
</ruleset>