Skip to content

Commit 5daf881

Browse files
committed
Add problem matchers for linting
1 parent 7067297 commit 5daf881

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
with:
4848
php-version: '7.4'
4949
coverage: none
50-
tools: php-cs-fixer, phpcs
50+
tools: cs2pr, php-cs-fixer, phpcs
5151
- name: Run PHP Coding Standards Fixer
52-
run: php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no
52+
run: php-cs-fixer fix --dry-run --using-cache=no --format=checkstyle | cs2pr
5353
- name: Run PHP_CodeSniffer
54-
run: phpcs -p --standard=PSR12 src tests --exclude=PSR12.Properties.ConstantVisibility
54+
run: phpcs --standard=PSR12 --exclude=PSR12.Properties.ConstantVisibility -q --report=checkstyle src tests | cs2pr
5555
coverage:
5656
runs-on: ubuntu-latest
5757
steps:

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ $finder = \PhpCsFixer\Finder::create()
55
->in(__DIR__ . '/tests');
66

77
return \PhpCsFixer\Config::create()
8+
->setRiskyAllowed(true)
89
->setRules([
910
'@PSR2' => true,
1011

0 commit comments

Comments
 (0)