Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode newlines in GithubErrorFormatter #317

Merged
merged 14 commits into from Sep 6, 2020

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
2 participants