mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-02-19 02:27:57 -05:00
phpcs: Relax style checks a bit
This commit is contained in:
parent
d755e66486
commit
bb6c3aba11
2 changed files with 28 additions and 3 deletions
5
.github/workflows/php.yml
vendored
5
.github/workflows/php.yml
vendored
|
|
@ -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
26
.phpcs.xml
Normal 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>
|
||||
Loading…
Reference in a new issue