Загрузка...

PHPLoc Lines of code static analysis to find PHP code smells

I show how to gauge code quality and get the lines of code to detect code smells in a PHP application by using PHPLoc from the command line or using Docker. In this PHP video Adam Culp of Beachcasts uses PHPLoc, a command line application, to conduct static code analysis and generate a small but highly useful report. Then he shows how to use it from a Docker Container using a Docker Image he created. PHPLoc demonstrated on the Concrete5 CMS codebase. Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others! Key Topics: - Why find the lines of code - PHPLoc is an application to find the lines of code in PHP - Different methods to use PHPLoc - How to use a Docker image to run PHPLoc - Comments as a code smell For a nice list of equipment I use in my studio, and to support the channel if you make any purchases (doesn't cost you a thing), visit my kit at kit.co: https://kit.co/beachcasts/beachcasts-studio Errata: Let me know if you notice anything that should be errata Associated Links: https://en.wikipedia.org/wiki/Code_smell - Code smells explained https://www.docker.com/get-started - The place for developers to start with Docker https://hub.docker.com/r/adamculp/php-code-quality - link to the image used to build the Docker container used in this video https://github.com/sebastianbergmann/phploc - location of the PHPLoc tool https://www.concrete5.org/ - Concrete5 CMS code I'm using in this video Timeline: 00:00 Video Intro 00:35 Introduction to why lines of code in an application are needed 01:15 Information about what PHPLoc is, and how it solves the need 03:18 Introduce Concrete5 CMS from Portland Labs as example codebase 04:02 Show PHPLoc repo on GitHub 05:30 Show PHPLoc on Packagist 06:38 Run PHPLoc over command line using PHP, with explained command 08:23 Show how to output the PHPLoc results to a file, instead of to terminal 09:35 How to run PHPLoc if you don't have a PHP environment 10:50 Introduction to a Docker image I created adamculp/php-code-quality 11:45 Highlight dockerfile used to create the Docker image 12:45 Command to use to create the Docker container and run PHPLoc 14:20 Details about the information output in the PHPLoc result file 14:40 Talk about why comments are a code smell Other Beachcasts PHP tech videos you might find interesting: Measure PHP Code Quality With Static Analysis Using PHPStan https://youtu.be/OiS2xGVWEa0 Critical programming issues preventing a PHP 7 upgrade https://youtu.be/z13glyDnm6s Behat for beginners functional REST API testing tutorial https://youtu.be/nFNGDhyFrm4 Doctrine ORM one-to-many bi-directional association https://youtu.be/4nEdBDxBc1w PHP Mess Detector static analysis to find PHP code smells https://youtu.be/8fEfHESrK5E Doctrine ORM one-to-many self-referencing association https://youtu.be/4dHZ6cZooOk 10 reasons to become a consultant in a consulting business https://youtu.be/J7gpMYAKmDM Zend Framework becomes Laminas project at Linux Foundation https://youtu.be/CEIO90ocEDI 10 bad things about consulting https://youtu.be/ELE0G3e7h3c Make a List handler middleware https://youtu.be/VLqavHCFv6g Make a Delete handler middleware https://youtu.be/3nLbQfMk99k Make an Update handler middleware https://youtu.be/3Zcq5Jjz1Po Use UUID with Doctrine ORM for DB keys https://youtu.be/SYuLwMwSIpg Make a Create handler middleware https://youtu.be/FIYh-VIWUko Automate Hypermedia creation for PHP REST API https://youtu.be/dX6S-pJVUXI Learn about Hypermedia and how to create it https://youtu.be/aV6ro_JXL_A Doctrine ORM Paginator for PHP REST API https://youtu.be/UpqOew4sNT0 Doctrine ORM Entity how to https://youtu.be/NnK9Geg1h_E Configure Doctrine ORM https://youtu.be/pFvh5ZNhdOQ Create PHP middleware with Zend Expressive https://youtu.be/26440j7D0BE Configure PhpStorm for PHP development with Docker https://youtu.be/FQWL-JTZvf4 Create PHP development environment with docker https://youtu.be/2ESAi2vq-80 Help through referrals: Thinking of buying a Tesla electric vehicle? Use this referral link to also get six months of free Supercharging for both of us. Thank you. https://www.tesla.com/referral/tanya21367 I use TubeBuddy to help me manage my YouTube channel. If you're interested, click the following link to check it out. https://www.tubebuddy.com/beachcasts #Docker #PhpLoc #Beachcasts

Видео PHPLoc Lines of code static analysis to find PHP code smells автора PHP для начинающих: основы программирования
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки