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] [*.xml]
indent_style = space indent_style = space
indent_size = 4 indent_size = 2
[*.json] [*.json]
indent_style = space indent_style = space

View file

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<docblox> <docblox>
<parser> <parser>
<target>data/output</target> <target>data/output</target>
</parser> </parser>
<transformer> <transformer>
<target>data/output</target> <target>data/output</target>
</transformer> </transformer>
<files> <files>
<directory>.</directory> <directory>.</directory>
</files> </files>
</docblox> </docblox>

View file

@ -1,15 +1,15 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="Friendica"> <ruleset name="Friendica">
<description>Friendica Coding Standards: PSR2 with tabs instead of spaces</description> <description>Friendica Coding Standards: PSR2 with tabs instead of spaces</description>
<arg name="tab-width" value="4"/> <arg name="tab-width" value="4"/>
<rule ref="PSR2"> <rule ref="PSR2">
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/> <exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
</rule> </rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent"> <rule ref="Generic.WhiteSpace.ScopeIndent">
<properties> <properties>
<property name="indent" value="4"/> <property name="indent" value="4"/>
<property name="tabIndent" value="true"/> <property name="tabIndent" value="true"/>
</properties> </properties>
</rule> </rule>
</ruleset> </ruleset>