<?xml version="1.0"?>
<ruleset name="Elasticsearch">
    <description>The coding standard for Sherlock.</description>
    <exclude-pattern>*/Tests/*</exclude-pattern>

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

    <!-- Include some of the Squiz standard -->
    <rule ref="Squiz">
        <exclude name="Squiz.Classes.ClassFileName"/>
        <exclude name="Squiz.Classes.ValidClassName"/>
        <exclude name="Squiz.Commenting.ClassComment"/>
        <exclude name="Squiz.Commenting.FileComment"/>
        <exclude name="Squiz.Commenting.FunctionComment"/>
        <exclude name="Squiz.Commenting.ClosingDeclarationComment"/>
        <exclude name="Squiz.Commenting.VariableComment"/>
        <exclude name="Squiz.ControlStructures.SwitchDeclaration"/>
        <exclude name="Squiz.Files.FileExtension"/>
        <exclude name="Squiz.NamingConventions.ConstantCase"/>
        <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing"/>
        <exclude name="PEAR.Functions.FunctionCallSignature"/>
        <exclude name="Generic.Debug.ClosureLinter.ExternalToolError"/>
        <exclude name="Generic.Debug.ClosureLinter"/>
        <exclude name="PEAR.Formatting.MultiLineAssignment"/>
        <exclude name="PEAR.Files.IncludingFile"/>
        <exclude name="PEAR.ControlStructures.MultiLineCondition"/>
        <exclude name=""/>
    </rule>



    <!-- We allow variables to be used inside double quoted strings -->
    <rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
        <severity>0</severity>
    </rule>

</ruleset>

Add custom CodeSniffer coding standard
Add custom CodeSniffer coding standard

Basically PSR2 + some parts of Squizz that I like
