Skip to content

Commit e7880c8

Browse files
committed
Small improvements to ruleset and phpcs.xml
1 parent ae0f9ac commit e7880c8

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

Inpsyde/ruleset.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset name="Inpsyde Coding Standard">
2+
<ruleset name="Inpsyde Coding Standard" namespace="Inpsyde\InpsydeCodingStandard">
33

44
<description>PHP 7+ coding standards for Inpsyde WordPress projects.</description>
55

@@ -11,6 +11,12 @@
1111
-->
1212
<config name="testVersion" value="7.0-"/>
1313

14+
<!--
15+
Arguments: colors, show progress and show sniff name.
16+
-->
17+
<arg name="colors"/>
18+
<arg value="sp"/>
19+
1420
<!--
1521
PSR 2 Code style.
1622
See http://www.php-fig.org/psr/psr-2/

phpcs.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@
66
<autoload>./Inpsyde/Helpers.php</autoload>
77
<autoload>./Inpsyde/PHPCSAliases.php</autoload>
88

9+
<file>./Inpsyde/Sniffs/CodeQuality</file>
10+
911
<!--
1012
PHP 7.0 and higher.
1113
-->
1214
<config name="testVersion" value="7.0-"/>
1315

16+
<!--
17+
Arguments: colors, show progress and show sniff name.
18+
-->
19+
<arg name="colors"/>
20+
<arg value="sp"/>
21+
1422
<!--
1523
PSR 2 Code style.
1624
See http://www.php-fig.org/psr/psr-2/
@@ -32,7 +40,7 @@
3240
<rule ref="NeutronStandard">
3341
<exclude name="NeutronStandard.Functions.LongFunction"/>
3442
<exclude name="NeutronStandard.Functions.VariableFunctions"/>
35-
<exclude name="NeutronStandard.Functions.TypeHint.NoArgumentType"/>
43+
<exclude name="NeutronStandard.Functions.TypeHint"/>
3644
</rule>
3745

3846
<!--
@@ -56,4 +64,9 @@
5664
</properties>
5765
</rule>
5866

67+
<!--
68+
Own styles to check styles files :)
69+
-->
70+
<rule ref="./Inpsyde/Sniffs/CodeQuality"/>
71+
5972
</ruleset>

0 commit comments

Comments
 (0)