Загрузка...

PHP Mess Detector static analysis to find PHP code smells

PHP tutorial to detect code smells in a PHP application using static analysis by using PHP Mess Detector (PHPMD) from the command line or using Docker. (see shortcuts below to key points) In this PHP video Adam Culp uses PHPmd, a command line application, to conduct static analysis and generate a useful report. Adam Culp of Beachcasts programming tutorials will show how to use phpmd from a Docker Container using a Docker Image on Docker Hub. PHPmd is demonstrated on the Concrete5 CMS codebase. Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others! Key Topics: - What are code smells - What is cyclomatic complexity - PHPmd is an application to find code smells in PHP - Different methods to use PHPmd - How to use a Docker image to run PHPmd 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/phpmd/phpmd - location of the PHPmd tool https://www.concrete5.org/ - Concrete5 CMS code I'm using in this video Timeline: 00:00 Video Intro 00:41 What is PHP Mess Detector 01:40 Show Docker image to use on Docker Hub and the command for phpmd 02:45 We analyze the command used to run phpmd using Docker 04:35 Viewing the phpmd results and highlight some key results 05:40 Definition of Cyclomatic Complexity 06:14 Definition of Code Smells 07:40 Definition of NPath Complexity 10:00 Various rulesets available with PHP Mess Detector 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 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 PHPLoc Lines of code static analysis to find PHP code smells https://youtu.be/HpC-Cvxj6oY 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 middlware 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 middlware 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 #Phpmd #Beachcasts

Видео PHP Mess Detector static analysis to find PHP code smells автора PHP Креативность
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки