From eecb1141b4d20bd6adb7986eb26b9ac389869cda Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 10 Feb 2024 01:04:39 +0100 Subject: [PATCH] Qual: Set reported php-cs severity level to 1 (travis) (#28096) # Qual: Set reported php-cs severity level to 1 (travis) After lowering the severity level to 4 for some messages, these are no longer shown in the travis build. The '--severity=1' argument fixes this. These warnings will not be reported because of ignore_warnings_on_exit Co-authored-by: Laurent Destailleur --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 686b2d72176..c2fb4e81103 100644 --- a/.travis.yml +++ b/.travis.yml @@ -359,13 +359,13 @@ script: # Exclusions are defined in the ruleset.xml file #if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_PHP_VERSION" = "8.1" ]; then if [ "$TRAVIS_PHP_VERSION" = "8.1" ]; then - phpcs -s -p -d memory_limit=-1 --extensions=php --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --runtime-set ignore_warnings_on_exit true .; + phpcs -s -p -d memory_limit=-1 --extensions=php --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --severity=1 --runtime-set ignore_warnings_on_exit true .; fi if [ "$TRAVIS_PHP_VERSION" = "8.2" ]; then - phpcs -s -p -d memory_limit=-1 --extensions=php --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --runtime-set ignore_warnings_on_exit true .; + phpcs -s -p -d memory_limit=-1 --extensions=php --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --severity=1 --runtime-set ignore_warnings_on_exit true .; fi if [ "$TRAVIS_PHP_VERSION" = "8.3" ]; then - phpcs -s -p -d memory_limit=-1 --extensions=php --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --runtime-set ignore_warnings_on_exit true .; + phpcs -s -p -d memory_limit=-1 --extensions=php --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --severity=1 --runtime-set ignore_warnings_on_exit true .; fi set +e echo