1
0
Fork 0

ident_size 2 is better for XML readability :)

This commit is contained in:
Philipp Holzer 2023-02-27 20:57:19 +01:00
parent 089850e8f6
commit ea550f6b02
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
3 changed files with 22 additions and 23 deletions

View file

@ -22,7 +22,7 @@ indent_size = 2
[*.xml]
indent_style = space
indent_size = 4
indent_size = 2
[*.json]
indent_style = space

View 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>

View 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>