phpcs: Relax style checks a bit

This commit is contained in:
Johannes Meyer 2020-01-17 16:37:03 +01:00
parent d755e66486
commit bb6c3aba11
2 changed files with 28 additions and 3 deletions

View file

@ -37,11 +37,10 @@ jobs:
- name: PHP Lint
if: success() || matrix.allow_failure
# continue-on-error: ${{ matrix.allow_failure }}
run: |
composer require -n --no-progress overtrue/phplint
./vendor/bin/phplint -n --exclude=vendor --no-ansi -- ./
./vendor/bin/phplint -n --exclude=vendor -- ./
- name: PHP CodeSniffer
if: success() || matrix.allow_failure
run: phpcs ./ --ignore=vendor/* --standard=PSR12
run: phpcs -wps --colors

26
.phpcs.xml Normal file
View file

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<ruleset name="Eagle">
<description>Sniff our code a while</description>
<file>./</file>
<exclude-pattern>vendor/*</exclude-pattern>
<arg name="report-width" value="auto"/>
<arg name="report-full"/>
<arg name="report-gitblame"/>
<arg name="report-summary"/>
<arg name="encoding" value="UTF-8"/>
<arg name="extensions" value="php"/>
<rule ref="PSR12">
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
</ruleset>