mirror of
https://github.com/friendica/friendica
synced 2024-12-22 06:40:16 +00:00
ident_size 2 is better for XML readability :)
This commit is contained in:
parent
089850e8f6
commit
ea550f6b02
3 changed files with 22 additions and 23 deletions
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
24
ruleset.xml
24
ruleset.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue