]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - phpcs.xml
Merge tag 'v0.12.1' into latest
[github/shaarli/Shaarli.git] / phpcs.xml
index 29b95d56dacffcff94e3a92cd6137289750e6686..c559e35da97bb4d8ec7afb229c7845fab983767f 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -5,13 +5,18 @@
   <file>index.php</file>
   <file>application</file>
   <file>plugins</file>
-  <file>tests</file>
+<!--  <file>tests</file>-->
 
   <exclude-pattern>*/*.css</exclude-pattern>
   <exclude-pattern>*/*.js</exclude-pattern>
 
   <arg name="colors"/>
 
-  <rule ref="PSR1"/>
-  <rule ref="PSR2"/>
+  <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>
+  </rule>
 </ruleset>