mirror of
https://github.com/friendica/friendica
synced 2024-11-17 16:23:46 +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]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
indent_size = 2
|
||||
|
||||
[*.json]
|
||||
indent_style = space
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
24
ruleset.xml
24
ruleset.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue