Skip to content

Commit bb6c3ab

Browse files
committed
phpcs: Relax style checks a bit
1 parent d755e66 commit bb6c3ab

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/php.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ jobs:
3737

3838
- name: PHP Lint
3939
if: success() || matrix.allow_failure
40-
# continue-on-error: ${{ matrix.allow_failure }}
4140
run: |
4241
composer require -n --no-progress overtrue/phplint
43-
./vendor/bin/phplint -n --exclude=vendor --no-ansi -- ./
42+
./vendor/bin/phplint -n --exclude=vendor -- ./
4443
4544
- name: PHP CodeSniffer
4645
if: success() || matrix.allow_failure
47-
run: phpcs ./ --ignore=vendor/* --standard=PSR12
46+
run: phpcs -wps --colors

.phpcs.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Eagle">
3+
<description>Sniff our code a while</description>
4+
5+
<file>./</file>
6+
7+
<exclude-pattern>vendor/*</exclude-pattern>
8+
9+
<arg name="report-width" value="auto"/>
10+
<arg name="report-full"/>
11+
<arg name="report-gitblame"/>
12+
<arg name="report-summary"/>
13+
<arg name="encoding" value="UTF-8"/>
14+
<arg name="extensions" value="php"/>
15+
16+
<rule ref="PSR12">
17+
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
18+
</rule>
19+
20+
<rule ref="Generic.Files.LineLength">
21+
<properties>
22+
<property name="lineLimit" value="120"/>
23+
<property name="absoluteLineLimit" value="0"/>
24+
</properties>
25+
</rule>
26+
</ruleset>

0 commit comments

Comments
 (0)