Skip to content

Commit 60966b9

Browse files
committed
Refactor PHP linting command to enhance error handling and suppress warnings for improved output clarity
1 parent 96e813d commit 60966b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/reusable-php-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Detect coding standard violations (PHPCS)
5050
if: ${{ inputs.run-phpcs }}
51-
run: composer lint -- -q --report=checkstyle | cs2pr --graceful-warnings
51+
run: composer lint -- -q --report=checkstyle --severity=1 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 | cs2pr --graceful-warnings
5252

5353
- name: Detect PHPStan issues
5454
if: ${{ inputs.run-phpstan }}

0 commit comments

Comments
 (0)