diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 75f29895..64dc41e8 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -4,7 +4,7 @@ Thank you for taking the time to report this bug :+1: Run `phpmetrics --version` to get the version of PhpMetrics. -**The latest version of PhpMetrics is v2.3.2.**. Please try to update PhpMetrics and check if the bug persist before submitting new issue. +**The latest version of PhpMetrics is v2.4.0.**. Please try to update PhpMetrics and check if the bug persist before submitting new issue. Here is a template for your issue. Please replace the words between braces with the right informations. diff --git a/.semver b/.semver index e88c8a2b..5a480190 100644 --- a/.semver +++ b/.semver @@ -1,5 +1,5 @@ --- :major: 2 -:minor: 3 -:patch: 2 +:minor: 4 +:patch: 0 :special: '' diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e382467..81ccda34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.4.0] - 2017-07-09 + ### Added - Added package metrics (#283) ### Changed - Enhanced composer package comparison (#337, #342 thanks @juliendufresne) - Better PHP 7 support (#335, #334, #336 thanks @carusogabriel) + - Support nikic/php-parser:^4 (#345, #347) + +### Fixed + - Refine Cyclomatic Complexity Metric (#343, #344, #353, #357, #358, thanks @fabianbadoi) + - Improved composer package version comparison (#337, thanks @juliendufresne) + - Resolved root path exclusion conflict (#355, thanks @fabianbadoi) + - Fixed getter and setter detection with types (#335, #336, thanks @jakagacic) + - Fixed documentation URL (#321, thanks @ottaviano) + - Fix non unique block ids in HTML output (#356, thanks @dumith-erange) + - Fix rounding of metrics (#339, thanks @ssfinney) diff --git a/artifacts/bintray.json b/artifacts/bintray.json index 441308ac..429d7fa2 100644 --- a/artifacts/bintray.json +++ b/artifacts/bintray.json @@ -10,10 +10,10 @@ "licenses": ["MIT"] }, "version": { - "name": "v2.3.2", + "name": "v2.4.0", "desc": "Latest version of PhpMetrics", - "released": "2017-10-13", - "vcs_tag": "v2.3.2", + "released": "2018-07-09", + "vcs_tag": "v2.4.0", "attributes": [], "gpgSign": false }, diff --git a/artifacts/debian/changelog b/artifacts/debian/changelog index ae95f872..fd647373 100644 --- a/artifacts/debian/changelog +++ b/artifacts/debian/changelog @@ -1,3 +1,59 @@ +phpmetrics (2.4.0) unstable; urgency=low + * HotFix #317: Bad assignement on item classmetrics. + * Merge pull request #319 from phpmetrics/hotfix-classmetric + * releasing v2.3.2 + * Adds www. in URLs phpmetrics.org + * Add package metrics + * Add package violation and some charts + * Ignore traits for now + * Test package metrics + * Add cli output + * Use assertCount + * Test against PHP 7.2 + * Merge pull request #333 from carusogabriel/assert-count + * Merge pull request #334 from carusogabriel/patch-1 + * Handle traits like classes + * Add Stable Abstractions Principle + * Detect getters and setters with types + * Improve composer package version comparison + * Rename method - typo + * Round percentiles on X-axis to prevent roundoff error + * Add else and elseif statements to the cyclomatic complexity test + * Fix bug that caused cyclomatic complexity to be underreported + * Merge pull request #336 from UFOMelkor/hotfix/335-role-detection-with-php7 + * Support nikic/php-parser:^4 + * Switch node traverser depending on php version + * Merge pull request #337 from juliendufresne/master + * Merge pull request #283 from UFOMelkor/feature/package-metrics + * Add changelog + * Filter identifiers to simplify php-parser:^4 compatibility + * Do not crash using php-parser:^4 + * Add Support for Stmt\Expression + * Merge pull request #339 from ssfinney/fixRoundingOnLocReport + * Merge pull request #344 from fabianbadoi/fix-343 + * Remove php 7 code + * Change the calculation of cyclomatic complexity + * Verify that traits are abstract + * Force traits to be abstract + * Merge pull request #354 from UFOMelkor/hotfix/351 + * fix for repeating bloc-ids + * Finalize cyclomatic complexity changes + * Test against lowest and highest dependencies + * Raise version of sebastian/comparator to at least 1.2.3 + * Merge pull request #356 from dumith-eranga/fix/report-html-violation-bloc-toggle + * Fix phpdoc argument types not matching actual types + * Fix issue where phpmetrics would not find any files + * Add test for current path exclusion + * Merge pull request #321 from ottaviano/fix-url-phpmetrics.org + * Merge pull request #353 from UFOMelkor/metric/ccn + * Merge pull request #347 from UFOMelkor/feature/345-php-parser-4 + * Do not iterate over ->expr twice + * Merge pull request #357 from UFOMelkor/hotfix/ccn + * Adjust cc violation limits + * Merge pull request #358 from UFOMelkor/feature/cc-violation-adjustments + + -- Jean-François Lépine Mon, 09 Jul 2018 14:22:08 +0200 + phpmetrics (2.3.0) unstable; urgency=low * Fix missing escapeshellarg on git command arguments to avoid security and access troubles. * Fix #317: Only consolidate class metrics that groups Classes and Traits to calculate sums and averages. @@ -382,3 +438,5 @@ phpmetrics (1.8.2) unstable; urgency=low + + diff --git a/doc/installation.md b/doc/installation.md index 6ab9a27b..db648180 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -16,14 +16,14 @@ export PATH=~/.composer/vendor/bin:$PATH ## Phar ```bash -curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.3.2/phpmetrics.phar +curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.4.0/phpmetrics.phar chmod +x phpmetrics.phar && mv phpmetrics.phar /usr/local/bin/phpmetrics ``` ## Apt (Debian, Ubuntu...) ```bash -curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.3.2/phpmetrics.deb +curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.4.0/phpmetrics.deb dpkg -i phpmetrics.deb ``` diff --git a/releases/phpmetrics.phar b/releases/phpmetrics.phar index 799901ee..93384a3d 100755 Binary files a/releases/phpmetrics.phar and b/releases/phpmetrics.phar differ diff --git a/src/functions.php b/src/functions.php index b0271b20..c450ebfd 100644 --- a/src/functions.php +++ b/src/functions.php @@ -166,5 +166,5 @@ function recurse_copy($src, $dst) */ function getVersion() { - return 'v2.3.2'; + return 'v2.4.0'; }