An Interest In:
Web News this Week
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
- March 13, 2024
April 26, 2021 05:52 pm GMT
Original Link: https://dev.to/mattkenefick/commands-to-check-your-technical-debt-in-laravel-45nk
Commands to check your technical debt in Laravel
The core command here is:
grep -nr -e '@urgent' -e '@todo' -e '@fixme' resources app -e Designates a pattern to find -n Shows the line number -r Recursively through directories List as many directories in sequence to iterate through
I've added it to composer as a script called "debt":
"debt": [ "grep -nr -e '@urgent' -e '@todo' -e '@fixme' resources app"],
Then you can run something like:
composer debtapp/Utility/Film.php:39: * @todo Swap out with a regexapp/Utility/Media.php:161: * @todo we have to make sure we kill the webp as wellapp/Utility/Media.php:189: * @todo move this to a utility class like we did for Utility/Mediaapp/Utility/Media.php:592: // @flag @urgent the `getCommonColors` function is slow
You could also use it in package.json
like:
"scripts": { "debt": "grep -nr -e '@urgent' -e '@todo' -e '@fixme' resources app"}... npm run debt
Original Link: https://dev.to/mattkenefick/commands-to-check-your-technical-debt-in-laravel-45nk
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To