Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
arxeiss committed May 11, 2021
1 parent 2ece20c commit 18c5baf
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,16 @@
<file>./src</file>
<file>./tests</file>

<config name="php_version" value="70000"/>
<config name="php_version" value="70100"/>

<arg name="basepath" value="."/> <!-- Strip file basepath from report -->
<arg name="colors"/>
<arg value="p"/><!-- Display progress in report -->
<arg value="s"/><!-- Display sniff codes in report -->

<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-tabs.xml">
<!-- trailing comma in function call is supported in PHP 7.3 and above -->
<exclude name="SlevomatCodingStandard.Functions.TrailingCommaInCall"/>
</rule>

<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-tabs.xml"/>
<rule ref="./vendor/arxeiss/coding-standards/Rules/phpcs-strict.xml"/>

<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"> <!-- Check type hint for class property -->
<properties>
<property name="enableNativeTypeHint" value="false" /><!-- Still need support for older PHP than 7.4 -->
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation">
<severity>5</severity>
</rule>
Expand Down

0 comments on commit 18c5baf

Please sign in to comment.