Phpmd Versions Save

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 measured by PHP Depend.

2.9.1

3 years ago

Fixed

  • Fixed #714: Improved static member detection
  • Fixed #816: Fixed undefined index referring

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @a-menshchikov
  • @kylekatarnls

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.9.0

3 years ago

Added

  • Added #496: Add rule for PHP's @ operator
  • Added #737: Allowing custom exclusion for StaticAccess by extending the class
  • Added #749: Add allow-underscore option for CamelCaseParameterName & CamelCaseVariableName
  • Added #747: Long variable subtract suffix
  • Added #763 via #765: Added rules LongClassName and ShortClassName

Changed

  • Changed: #529 : Replaced HTML renderer with new "pretty HTML" renderer
  • Changed: #806 : Changed #44 Change private methods to protected in rules. Make rules extendable
  • Changed: Internal code improvement #750 #752 #756 #757 #758 #759 #768 #773 #775 #785 #787 #791 #792

Fixed

  • Fixed #743: Output for version
  • Fixed #754: Fixed #720 undefined variable in foreach when passed by reference
  • Fixed #764: Fixed #718 Handle anonymous class in "undefined variable" rule
  • Fixed #770: Fixed #769 Handle deconstruction assignation for undefined variable
  • Fixed #781: Fixed #714 static:: and self:: properties access
  • Fixed #784: Fixed #672 Handle passing-by-reference in native PHP functions
  • Fixed #793: Fixed #580 Raise UnusedFormalParameter instead UnusedLocalVariable for unused closure parameter
  • Fixed #794: Fixed #540 Detect unused variable declared multiple times
  • Fixed #805: Fixed #802 Prevent an error with nested arrays
  • Fixed #807: Fixed #790 Fix for short variables rule inside foreach statements
  • Fixed #809: Fixed #808 Ignore rule path for supression annotation
  • Updated different parts of the documentation. #717 #736 #748 #811

Deprecated

  • Deprecated all the PHPMD exceptions that aren't part of the PHPMD\Exceptions namespace. See #775

A potential BC change:

With the clean-up in #768 we have a potential BC break in an unsupported part that we want to give attention for.

The class aliases PHP_PMD_* used for PHPMD 1.x backwards PEAR compatibility were removed. If you happen to still depend on these, please adjust your code like so:

From PHP_PMD_[Component]_[Class]' to PHPMD\[Component]\[Class], as in PHP_PMD_Renderer_HTMLRenderer' to PHPMD\Renderer\HTMLRenderer. See #768

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @ale7714
  • @artem-prozorov
  • @eeree
  • @frankdekker
  • @kylekatarnls
  • @MarkVaughn
  • @ondrejfuhrer
  • @ravage84
  • @smuuf
  • @sveneld
  • @tuc0w
  • @tvbeek
  • @tuc0w

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.8.2

4 years ago

Fixed

  • Fixed #732: Added __serialize and __unserialize to list of ignored methods for camelCase rule.

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @kylekatarnls

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.8.1

4 years ago

Fixed

  • Fixed PHP 7.4 unit tests compatibility
  • Improved documentation
  • Automated website generation and PHAR publishing

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @tvbeek
  • @kylekatarnls
  • @BackEndTea

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.8.0

4 years ago

Added

  • Required at least pdepend/pdepend 2.6:
    • Added PHP 7.1 to 7.3 syntax support
    • Added Symfony 5 support
  • #571: Added ignore-namespaces property to DevelopmentCodeFragment rule
  • #595: Added a renderer which writes an ansi report string

Fixed

  • Improved performances by disabling XDebug if in use
  • #657 Fix IfStatementAssignment violation message
  • #667: Be sure the phar file use the latest possible versions of dependencies (like pdepend)
  • #661: Fix IfStatementAssignment thrown incorrectly
  • #676: Handle @SuppressWarnings on each method for CountInLoop
  • #659: Update RuleSetFactory to be PHP 7.4 compatible
  • Update different parts of the documentation. #595 #645 #646 #648 #652 #665 #679 #691

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @raa0121
  • @AJenbo
  • @DannyvdSluijs
  • @eeree
  • @Jir4
  • @poplary
  • @SailorMax
  • @tariq86
  • @PtrTn
  • @wirwolf
  • @tvbeek
  • @szepeviktor
  • @kylekatarnls
  • @ravage84

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.8.0-beta.2

4 years ago

Added

  • Required at least pdepend/pdepend 2.6:
    • Added PHP 7.1 to 7.3 syntax support
    • Added Symfony 5 support
  • #571: Added ignore-namespaces property to DevelopmentCodeFragment rule
  • #595: Added a renderer which writes an ansi report string

Fixed

  • Improved performances by disabling XDebug if in use
  • #657 Fix IfStatementAssignment violation message
  • #667: Be sure the phar file use the latest possible versions of dependencies (like pdepend)
  • #661: Fix IfStatementAssignment thrown incorrectly
  • #676: Handle @SuppressWarnings on each method for CountInLoop
  • #659: Update RuleSetFactory to be PHP 7.4 compatible
  • Update different parts of the documentation. #595 #645 #646 #648 #652 #665 #679 #691

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @raa0121
  • @AJenbo
  • @DannyvdSluijs
  • @eeree
  • @Jir4
  • @poplary
  • @SailorMax
  • @tariq86
  • @PtrTn
  • @wirwolf
  • @tvbeek
  • @szepeviktor
  • @kylekatarnls
  • @ravage84

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.8.0-beta.1

4 years ago

Added

  • #571: Added ignore-namespaces property to DevelopmentCodeFragment rule
  • #595: Added a renderer which writes an ansi report string

Fixed

  • Improved performances by disabling XDebug if in use
  • #657 Fix IfStatementAssignment violation message
  • #667: Be sure the phar file use the latest possible versions of dependencies (like pdepend)
  • #661: Fix IfStatementAssignment thrown incorrectly
  • #676: Handle @SuppressWarnings on each method for CountInLoop
  • #659: Update RuleSetFactory to be PHP 7.4 compatible
  • Update different parts of the documentation. #595 #645 #646 #648 #652 #665 #679 #691

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @raa0121
  • @AJenbo
  • @DannyvdSluijs
  • @eeree
  • @Jir4
  • @poplary
  • @SailorMax
  • @tariq86
  • @PtrTn
  • @wirwolf
  • @tvbeek
  • @szepeviktor
  • @kylekatarnls
  • @ravage84

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.7.0

4 years ago

The new maintainer team of PHPMD is pleased to announce its first minor release PHP Mess Detector version 2.7.0.

This contains all the new features, improvements and fixes from over 250 commits from two and a half years since 2.6.0. Please, also take note of a backwards incompatible property renaming in the CouplingBetweenObjects rule.

Added

Fixed

  • #482: Renamed minimum property to maximum in CouplingBetweenObjects rule (backwards incompatible)
  • #626: Fixed special characters escaping in violation description for XML output
  • #378: Fixed warning/error when trying to export to a non-existing path
  • #575: Fixed UnusedFormalParameter false positive in string compound variable
  • #480: Fixed "Start tag expected, '<' not found" error
  • #494: Fixed UnusedPrivateField false positive
  • #583: Changed LongNaming rule to apply on private fields too
  • #572: Added support for both @SuppressWarnings and @suppressWarnings annotation cases

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @eeree
  • @DmitryNaum
  • @john-whitley
  • @JulienPalard
  • @ravage84
  • @exploitfate
  • @RyDroid
  • @tominventisbe
  • @dxops
  • @jaymoulin
  • @avmnu-sng
  • @HappyHippyHippo
  • @vt-iwamoto
  • @choult
  • @liviascapin
  • @kylekatarnls
  • @JeroenDeDauw
  • @emirb
  • @tvbeek
  • @OndraM
  • @Marius786
  • @BenjaminPaap
  • @fbertolotti
  • @gbirke
  • @MarkVaughn
  • @rafalwrzeszcz
  • @mindplay-dk
  • @KOLANICH
  • @schinkel
  • @jhoff
  • @EvgenyOrekhov
  • @1ma
  • @duncancumming
  • @edhgoose
  • @mermshaus
  • @manuelpichler
  • @richvigorito

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.

2.6.1

4 years ago

The new maintainer team of PHPMD is pleased to announce PHP Mess Detector version 2.6.1. This is a patch release for the 2.6.x release branch.

Changes

You can expect the following changes in this release:.

  • Build the PHAR file on Travis-CI and publish it to GitHub releases #616

Consult the changelog for the full history of noteworthy changes or browse through the list of commits since the last release.

Contributors to this release

We would like to thank all the contributors that helped make this release possible:

  • @jakzal
  • @ravage84

Also, we are very grateful to contributors that opened issues, created pull requests or participated as our community.