Initial commit
This commit is contained in:
24
phpcs.xml
Normal file
24
phpcs.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="BOHA">
|
||||
<description>BOHA Automation coding standard</description>
|
||||
|
||||
<rule ref="PSR12"/>
|
||||
|
||||
<!-- Třídy bez autoloaderu nemají namespace -->
|
||||
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
|
||||
<!-- API soubory mají routing + funkce v jednom souboru -->
|
||||
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
|
||||
<type>warning</type>
|
||||
</rule>
|
||||
|
||||
<file>api/</file>
|
||||
|
||||
<exclude-pattern>vendor/</exclude-pattern>
|
||||
<exclude-pattern>node_modules/</exclude-pattern>
|
||||
|
||||
<arg name="colors"/>
|
||||
<arg value="sp"/>
|
||||
</ruleset>
|
||||
Reference in New Issue
Block a user