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
- #472: Added rule for assignment within conditional (IfStatementAssignment)
- #490: Added rule for count in loop (CountInLoop)
- #484: Added rule for duplicated array key (DuplicatedArrayKey)
- #476: Added rule for empty catch block (EmptyCatchBlock)
- #636: Added rule for missing import (MissingImport)
- #443: Added support for compound variables in UnusedLocalVariable rule
- #329: Added support to whitelist variables in the UnusedLocalVariable rule
- #405: Added JSON output format
- #525: Added new options to CLI (min-priority, minimum-priority, report-file, input-file, not-strict)
- #579: Added support for setting the maximum execution priority through CLI (max-priority, maximum-priority, maximumpriority)
- #489: Added new predefined variables to AbstractLocalVariable base rule
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.