Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 26, 2021 05:52 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To