Php-cs-fixer: Suggestion: Show line number

Created on 6 Sep 2018  路  2Comments  路  Source: FriendsOfPHP/PHP-CS-Fixer

Would it be possible for each token to have associated a line number from the file ?

I know that the line number is more or less impossible to keep up-to-date during the fixing, but being able to be shown the original line number of tokens fixed in the most verbose cases would be very useful.

Perhaps something like:

  • Lines changed: 40,41,129
kinquestion

Most helpful comment

you can use --diff to generate a diff, use --diff-format=udiff for the line numbers

All 2 comments

you can use --diff to generate a diff, use --diff-format=udiff for the line numbers

Closing as "easy" answer was provided. Hard one would be #3601 .
Don't hesitate to continue discussion, even if thread is closed now ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aidantwoods picture aidantwoods  路  3Comments

ndench picture ndench  路  3Comments

Bilge picture Bilge  路  3Comments

vitek-rostislav picture vitek-rostislav  路  3Comments

fisharebest picture fisharebest  路  3Comments