phpcs.xml 914 B

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0"?>
  2. <ruleset name="Shaarli">
  3. <description>The Shaarli coding standards</description>
  4. <file>index.php</file>
  5. <file>application</file>
  6. <file>plugins</file>
  7. <file>tests</file>
  8. <exclude-pattern>*/*.css</exclude-pattern>
  9. <exclude-pattern>*/*.js</exclude-pattern>
  10. <arg name="colors"/>
  11. <rule ref="PSR12"/>
  12. <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
  13. <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
  14. <!-- index.php bootstraps everything, so yes mixed symbols with side effects -->
  15. <exclude-pattern>index.php</exclude-pattern>
  16. <exclude-pattern>plugins/*</exclude-pattern>
  17. <exclude-pattern>tests/bootstrap.php</exclude-pattern>
  18. <exclude-pattern>tests/utils/RainTPL.php</exclude-pattern>
  19. </rule>
  20. <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
  21. <exclude-pattern>tests/utils/RainTPL.php</exclude-pattern>
  22. </rule>
  23. </ruleset>