forked from chaosarium/lwt
-
-
Notifications
You must be signed in to change notification settings - Fork 20
26 lines (21 loc) · 659 Bytes
/
phpcs.yml
File metadata and controls
26 lines (21 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: PHP CodeSniffer
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
phpcs:
name: PHP CodeSniffer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: cs2pr, phpcs
- name: Run PHP CodeSniffer
# --warning-severity=0 ignores warnings (PSR-12 side-effects in view files)
run: phpcs --standard=PSR12 --extensions=php --ignore=vendor/,node_modules/,docs/ --warning-severity=0 src/ --report=checkstyle | cs2pr