Skip to content

encode newlines in GithubErrorFormatter#317

Merged
ondrejmirtes merged 14 commits intophpstan:masterfrom
staabm:github-newlines
Sep 6, 2020
Merged

encode newlines in GithubErrorFormatter#317
ondrejmirtes merged 14 commits intophpstan:masterfrom
staabm:github-newlines

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Sep 6, 2020

when using https://github.com/phpstan/phpstan-deprecation-rules phpstan emits multi-line error messages.
these do not get rendered properly on github.com - we only see the first line.

I guess this is related because newlines are not properly escaped.
see actions/starter-workflows#68 (comment)

grafik

inspired by a similar fix in cs2pr: staabm/annotate-pull-request-from-checkstyle#49

@ondrejmirtes
Copy link
Member

Please add a test for this scenario.

@staabm
Copy link
Contributor Author

staabm commented Sep 6, 2020

turns out there was a lot of expectation changes.. hopefully thats what you had in mind.

the PR seems to add coverage for a lot more code, which it actually changes - but thats great. i love it.

@ondrejmirtes ondrejmirtes merged commit c99b7f8 into phpstan:master Sep 6, 2020
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the github-newlines branch September 6, 2020 11:15
@staabm
Copy link
Contributor Author

staabm commented Sep 6, 2020

Fix verified..
585A9841-C1D9-42D9-A2C7-FA5F61974C5E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants