isaaceindhoven / php-code-sniffer-baseliner

Baseline tool for PHP_CodeSniffer
https://isaac.nl
MIT License
16 stars 5 forks source link

Fix totals parsing in ReportDeserializer #11

Closed thomasheller closed 1 year ago

thomasheller commented 2 years ago

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.

jeroennoten commented 1 year ago

Thank you @thomasheller!