mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 10:17:32 +00:00
Add phpcs configuration with PSR-12 standard
This commit is contained in:
parent
e64b340af2
commit
85c370c438
27
phpcs.xml.dist
Normal file
27
phpcs.xml.dist
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="phpcs.xsd">
|
||||
<file>src</file>
|
||||
<file>tests</file>
|
||||
|
||||
<arg name="colors"/>
|
||||
<arg name="parallel" value="75"/>
|
||||
<arg value="np"/>
|
||||
|
||||
<!-- Include the whole PEAR standard -->
|
||||
<rule ref="PSR12"/>
|
||||
|
||||
<rule ref="PSR12.Operators.OperatorSpacing.NoSpaceAfter">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
|
||||
<rule ref="PSR12.Operators.OperatorSpacing.NoSpaceBefore">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
|
||||
<!-- Check var names, but we don't want leading underscores for private vars -->
|
||||
<!-- <rule ref="Squiz.NamingConventions.ValidVariableName"/>
|
||||
<rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
|
||||
<severity>0</severity>
|
||||
</rule> -->
|
||||
|
||||
</ruleset>
|
Loading…
Reference in a new issue