Open sunnysideup opened 5 years ago
I am happy to write this code for the upgrade tool IF someone can me a few pointers on how to do this.
Alternatively, someone could perhaps explain how to get the warnings data in a parseable format so that we could run the inspect
command and add the comments ourselves using the outputted data.
e.g.
[PATH], [LINE], [MESSAGE], [URL]
[PATH], [LINE], [MESSAGE], [URL]
[PATH], [LINE], [MESSAGE], [URL]
'app/src/Hello.php', 23, 'Session can not be called using static methods in SS4', 'bla.foobar.com'
I'm not sure how much value this would provide. The initial logic wasn't written with this idea in mind.
If I wanted to do this, I would probably try to add it to CodeChangeSet
, this is where we track the changed code and the warnings. That's what uses to compiled the diff we show users.
If you want to have a go at creating a PR for this, maybe do a very rough proof of concept first.
In my mind it adds a ton of value, for the following reasons:
Would it be possible to get the output like this: [PATH], [LINE], [MESSAGE], [URL] 'app/src/Hello.php', 23, 'Session can not be called using static methods in SS4', 'bla.foobar.com'
or perhaps have the option to save this into a file?
I was wondering if it would be possible to have the inspect
warnings
written into the code...e.g.
BEFORE
AFTER
The reason for this is that they are easily missed when doing the upgrade on the command line and if you are working on the project over several days then you want an easy way to find the "todo" things.