]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - phpcs.xml
Merge pull request #1669 from leyrer/master
[github/shaarli/Shaarli.git] / phpcs.xml
index 29b95d56dacffcff94e3a92cd6137289750e6686..9bdc872092a0d3aff71bb1652db2148f3cc1790f 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -5,13 +5,19 @@
   <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>
+    <exclude-pattern>plugins/*</exclude-pattern>
+  </rule>
 </ruleset>