Skip to content

Commit 2a370db

Browse files
committed
style(update): improved
1 parent d866e00 commit 2a370db

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CodeatCodingStandard/ruleset.xml

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<arg name="extensions" value="php"/>
66
<!-- Treat all files as UTF-8. -->
77
<config name="encoding" value="utf-8"/>
8+
<arg name="tab-width" value="4"/>
89
<!-- Show progress. -->
910
<arg value="p"/>
1011
<exclude-pattern type="relative">^\.git/*</exclude-pattern>
@@ -31,6 +32,13 @@
3132
<rule ref="Generic.Files.ByteOrderMark"/>
3233
<rule ref="Generic.Commenting.Todo"/>
3334
<rule ref="Generic.Commenting.Fixme"/>
35+
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
36+
<rule ref="Generic.WhiteSpace.ScopeIndent">
37+
<properties>
38+
<property name="indent" value="4"/>
39+
<property name="tabIndent" value="true"/>
40+
</properties>
41+
</rule>
3442
<rule ref="Zend.Files.ClosingTag"/>
3543
<rule ref="Squiz.Commenting">
3644
<exclude name="Squiz.Commenting.PostStatementComment.Found"/>

codeat-phpmd.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset xmlns="http://pmd.sf.net/ruleset/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Standard PHPMD" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation=" http://pmd.sf.net/ruleset_xml_schema.xsd">
2+
<ruleset xmlns="http://pmd.sf.net/ruleset/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Standard PHPMD" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
33
<description>
44
Standard PHPMD
55
</description>
@@ -23,4 +23,10 @@
2323
<property name="allow-unused-foreach-variables" value="true"/>
2424
</properties>
2525
</rule>
26+
<rule ref="rulesets/naming.xml/ShortVariable">
27+
<priority>1</priority>
28+
<properties>
29+
<property name="exceptions" value="is" />
30+
</properties>
31+
</rule>
2632
</ruleset>

0 commit comments

Comments
 (0)