PHP Mess Detector

36 Followers
4 Following
9 Posts

This is the project site of PHPMD. It is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.

Account is currently monitored by @tvbeek

GitHubhttps://github.com/phpmd/phpmd/
Websitehttps://phpmd.org/

The Daily WTF wrote a nice and short article about NPath Complexity https://thedailywtf.com/articles/npath-complexity

If you don't know, it is one of the rules that we support with PHPMD: https://phpmd.org/rules/codesize.html#npathcomplexity

NPath Complexity

We're not going to look at code today, and instead, we're going to talk about a code metric. Specifically, "NPath complexity". NPath complexity is a good metric to track, and many static analyzers will do it. Formally written, it's defined: "The NPath complexity of a method is the number of acyclic execution paths through that method." Or, more simply, not counting loop iterations, this is how many branches you have in a single method.

The Daily WTF
Don't add boolean arguments | Oliver Davies

Oliver is an Acquia-certified Triple Drupal expert, core contributor, Developer, Consultant and multiple-time DrupalCon speaker.

Oliver Davies

We are working on version 3 for PHPMD.

The new major version will not only drop all PHP versions from 5.2 till 8.0 but also cleanup the internal code and lower the maintenance cost.

You can follow the proces in the milestone: https://github.com/phpmd/phpmd/milestone/25

#php #PHPMD

3.0.0 Milestone · phpmd/phpmd

PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream meas...

GitHub

We released version 2.15.0

This version contains 2 additions, 2 fixes and 2 documentation parts.

This includes a @pdepend update with support for PHP 8.3 syntax and Symfony 7.

#release #PHP #PHPMD

https://github.com/phpmd/phpmd/releases/tag/2.15.0

Release PHPMD 2.15.0 · phpmd/phpmd

Added Added #1036 [CLI] Allow option and value separated with equal sign Require pdepend/pdepend 2.16.1 Added pdepend/pdepend#699 Symfony 7 compatibility Added pdepend/pdepend#692 PHP 8.3 Syntax ...

GitHub

We released version 2.14.1, this patch a problem with empty PHP files and errors with the cache.

#release #PHP #PHPMD

https://github.com/phpmd/phpmd/releases/tag/2.14.1

Release 2.14.1 · phpmd/phpmd

Fixed Require pdepend/pdepend 2.15.1 Fixed #1039 Re-allow empty compilation unit. Fixed #1037: Cache result also if there are no composer or baseline files. Contributors to this release @fran...

GitHub

We are happy to release PHPMD 2.14.0

This includes support for STDIN, support for caching and signing of the PHAR file.

For all information see the release and changelog: https://github.com/phpmd/phpmd/releases/tag/2.14.0

#PHP #PHPMD #release

Release 2.14.0 · phpmd/phpmd

Added Added #997: Add a follow on mastodon link to the footer on the website. Added #999: Add dev as keyword to the composer.json file. Added #1014: Add phar signing. Added #1011: Add support for ...

GitHub
I just received a message that the recording of my presentation on Full Stack Europe about @phpmd is online on YouTube: https://www.youtube.com/watch?v=FRfavac0gmQ
Prevent a mess with PHP Mess Detector - Tobias van Beek - Full Stack Europe 2022

YouTube

Hello World!

From now on I will also announce the releases for #PHP Mess Detector here on Mastodon. #PHPMD