]> git.mxchange.org Git - friendica.git/commitdiff
ident_size 2 is better for XML readability :)
authorPhilipp <admin@philipp.info>
Mon, 27 Feb 2023 19:57:19 +0000 (20:57 +0100)
committerPhilipp <admin@philipp.info>
Mon, 27 Feb 2023 19:57:19 +0000 (20:57 +0100)
.editorconfig
docblox.dist.xml
ruleset.xml

index 0cb6e3e97d5aeb7fe20f62128c5aa6d312241070..610409143b385b6941f01569cc57a3081988463a 100644 (file)
@@ -22,7 +22,7 @@ indent_size = 2
 
 [*.xml]
 indent_style = space
-indent_size = 4
+indent_size = 2
 
 [*.json]
 indent_style = space
index aff0af91a7ce9202ada2fc7b1f6235357f5d0c76..d702bc88867ba49fda706b5d0422e5f6a5afdfd4 100644 (file)
@@ -1,13 +1,12 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <docblox>
-    <parser>
-        <target>data/output</target>
-    </parser>
-    <transformer>
-        <target>data/output</target>
-    </transformer>
-    <files>
-        <directory>.</directory>
-    </files>
+  <parser>
+    <target>data/output</target>
+  </parser>
+  <transformer>
+    <target>data/output</target>
+  </transformer>
+  <files>
+    <directory>.</directory>
+  </files>
 </docblox>
-
index a71b7062fc02165fa2dcbb9ec9cb3f1e4bde0cae..037b0e7b3573558a2f9acb2083adceb532f1ce36 100644 (file)
@@ -1,15 +1,15 @@
 <?xml version="1.0"?>
 <ruleset name="Friendica">
-    <description>Friendica Coding Standards: PSR2 with tabs instead of spaces</description>
-    <arg name="tab-width" value="4"/>
-    <rule ref="PSR2">
-        <exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
-    </rule>
-    <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
-    <rule ref="Generic.WhiteSpace.ScopeIndent">
-        <properties>
-            <property name="indent" value="4"/>
-            <property name="tabIndent" value="true"/>
-        </properties>
-    </rule>
+  <description>Friendica Coding Standards: PSR2 with tabs instead of spaces</description>
+  <arg name="tab-width" value="4"/>
+  <rule ref="PSR2">
+    <exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
+  </rule>
+  <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
+  <rule ref="Generic.WhiteSpace.ScopeIndent">
+    <properties>
+      <property name="indent" value="4"/>
+      <property name="tabIndent" value="true"/>
+    </properties>
+  </rule>
 </ruleset>