Skip to content

Commit

Permalink
Update phpcs.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 4, 2024
1 parent ae079c5 commit 5d10e28
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<ruleset name="PHPStan Extensions Coding Standard">
<config name="php_version" value="70200"/>
<config name="php_version" value="70400"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="encoding" value="utf-8"/>
Expand Down Expand Up @@ -110,6 +110,22 @@
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<rule ref="Consistence.NamingConventions.ValidVariableName.NotCamelCaps"/>
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall">
<properties>
<property name="onlySingleLine" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall">
<properties>
<property name="enable" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction">
<properties>
<property name="enable" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>
<exclude-pattern>tests/*/data</exclude-pattern>
<exclude-pattern>tests/*/data-attributes</exclude-pattern>
</ruleset>

0 comments on commit 5d10e28

Please sign in to comment.