-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use udiff format for php-cs-fixer diff output #31484
Conversation
Codecov Report
@@ Coverage Diff @@
## master #31484 +/- ##
=========================================
Coverage 62.6% 62.6%
Complexity 18271 18271
=========================================
Files 1147 1147
Lines 68621 68621
Branches 1234 1234
=========================================
Hits 42963 42963
Misses 25297 25297
Partials 361 361
Continue to review full report at Codecov.
|
Sample output with
|
This change has been added to backport PR #31453 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Use the
udiff
format when logging diffs ofphp-cs-fixer
code style fixes.Related Issue
Motivation and Context
Currently
php-cs-fixer
uses a diff output format that:These days there is a
--diff-format udiff
option which provides a diff that solves the above issues, and looks a lot more like the diff that developers will be used to seeing for patches etc.How Has This Been Tested?
Make some rubbish changes to code, then run:
and see more compact diff output.
Types of changes
Checklist: