aboutsummaryrefslogblamecommitdiffhomepage
path: root/phpcs.xml
blob: 9bdc872092a0d3aff71bb1652db2148f3cc1790f (plain) (tree)
1
2
3
4
5
6
7
8






                                                         
                           





                                            

                                                      



                                                                                      
                                                
         
          
<?xml version="1.0"?>
<ruleset name="Shaarli">
  <description>The Shaarli coding standards</description>

  <file>index.php</file>
  <file>application</file>
  <file>plugins</file>
<!--  <file>tests</file>-->

  <exclude-pattern>*/*.css</exclude-pattern>
  <exclude-pattern>*/*.js</exclude-pattern>

  <arg name="colors"/>

  <rule ref="PSR12"/>
  <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>

  <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
    <!--  index.php bootstraps everything, so yes mixed symbols with side effects  -->
    <exclude-pattern>index.php</exclude-pattern>
    <exclude-pattern>plugins/*</exclude-pattern>
  </rule>
</ruleset>