When phpcs reports only warnings but no errors, phpcs-baseliner create-baseline fails with PHP_CodeSniffer did not report any errors. and does not create any ignore comments for the warnings.
This seems to be caused by the ReportDeserializer which does not distinguish between errors and warnings. This PR adds the missing distinction.
When
phpcs
reports only warnings but no errors,phpcs-baseliner create-baseline
fails withPHP_CodeSniffer did not report any errors.
and does not create any ignore comments for the warnings.This seems to be caused by the
ReportDeserializer
which does not distinguish between errors and warnings. This PR adds the missing distinction.