Skip to content

Commit

Permalink
only fail phpcs on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
carlHandy committed Jul 27, 2024
1 parent 85bf943 commit c12f0a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
run: composer install

- name: Run PHP CodeSniffer
run: vendor/bin/phpcs -p --standard=phpcs.xml --ignore=*/vendor/*
run: vendor/bin/phpcs -p --standard=phpcs.xml --runtime-set ignore_warnings_on_exit 1
2 changes: 1 addition & 1 deletion pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ repos:
- id: phpcs
name: PHP CodeSniffer
entry: vendor/bin/phpcs
args: ['-p', '--standard=phpcs.xml', '--ignore=*/vendor/*']
args: ['-p', '--standard=phpcs.xml']
language: system
types: [php]

0 comments on commit c12f0a6

Please sign in to comment.