File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
<arg name =" extensions" value =" php" />
6
6
<!-- Treat all files as UTF-8. -->
7
7
<config name =" encoding" value =" utf-8" />
8
+ <arg name =" tab-width" value =" 4" />
8
9
<!-- Show progress. -->
9
10
<arg value =" p" />
10
11
<exclude-pattern type =" relative" >^\.git/*</exclude-pattern >
31
32
<rule ref =" Generic.Files.ByteOrderMark" />
32
33
<rule ref =" Generic.Commenting.Todo" />
33
34
<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 >
34
42
<rule ref =" Zend.Files.ClosingTag" />
35
43
<rule ref =" Squiz.Commenting" >
36
44
<exclude name =" Squiz.Commenting.PostStatementComment.Found" />
Original file line number Diff line number Diff line change 1
1
<?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" >
3
3
<description >
4
4
Standard PHPMD
5
5
</description >
23
23
<property name =" allow-unused-foreach-variables" value =" true" />
24
24
</properties >
25
25
</rule >
26
+ <rule ref =" rulesets/naming.xml/ShortVariable" >
27
+ <priority >1</priority >
28
+ <properties >
29
+ <property name =" exceptions" value =" is" />
30
+ </properties >
31
+ </rule >
26
32
</ruleset >
You can’t perform that action at this time.
0 commit comments