PHP-Migration
PHP-Migration copied to clipboard
Enhancement - Mark a file as reviewed
Hi, Your tool is great. But I have a big project to migrate, and I can't do it in one shot. So I progressively check files.
But when some alerts are not identified with the * (or they are identified but I don't care), I have no way to say "Ok this file has been reviewed", so phpmig does not need to care about it anymore.
So they popup everytime I run phpmig
I suggest phpmig watch for a "@phpmig-reviewed" tag in comments in the X first lines of the file. And if the tag exists, phpmig just ignore that file.
Or maybe create a ~/.phpmigignore file with absolute paths and phpmig watch for it and ignore files in that file.
Thank you.
Thanks for your useful advice.
I'll try to explain this problem. This problem was considered during development but didn't have any solution that good enough.
According to this advice, your usage may like this,
- Run a
phpmigfull check, lots of spots outputted - Fix some, ignore some, but not all spots or files
(repeat, until no spot output)
Whether adding some tag in comments or recording by the ignore file, all users are expecting the result that ALL FILES and SPOTS are PROCESSED.
If that is true, think this workflow
- Run a full check, save the original result to result.orig
- Process some files 2.1 Fix spot 2.2 Mark spots which are ignored in result.orig
- Run a full check, save result to result.now
- Diff these two result files
(repeat 2 - 4, until the result of diff are all marked ignored)
Is this workflow useful for your usage?