Skip to content

Commit 7c39a17

Browse files
committed
ADD PHPCPD to the QA tools
1 parent 5b4f7a6 commit 7c39a17

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/coding_standards.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: push
33

44
jobs:
55
coding-standards:
6-
name: PHP CodeSniffer
6+
name: PHP CodeSniffer && PHPCPD
77
runs-on: ubuntu-latest
88

99
steps:
@@ -36,3 +36,7 @@ jobs:
3636
# Run PHP CodeSniffer
3737
- name: Run PHP CodeSniffer
3838
run: php vendor/bin/phpcs
39+
40+
# Run PHP Copy Paste Detector
41+
- name: Run PHP CPD
42+
run: php vendor/bin/phpcpd --exclude ./vendor .

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [2.1.0] - 2021-12-04
810
### Added
911
- support for **Symfony** v6
10-
- **PHP CodeSniffer**, **PHP Compatibility**, **PHPStan** & **PHPStan strict rules** to the CI
12+
- **PHP CodeSniffer**, **PHP Compatibility**, **PHPCPD**, **PHPStan** & **PHPStan strict rules** to the CI
1113

1214
## [2.0.0] - 2021-11-14
1315
### Changed
@@ -47,7 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4749
### Added
4850
- Bundle base
4951

50-
[Unreleased]: https://github.com/AymDev/CommonMarkBundle/compare/v2.0.0...HEAD
52+
[Unreleased]: https://github.com/AymDev/CommonMarkBundle/compare/v2.1.0...HEAD
53+
[2.1.0]: https://github.com/AymDev/CommonMarkBundle/compare/v2.0.0...v2.1.0
5154
[2.0.0]: https://github.com/AymDev/CommonMarkBundle/compare/v1.3.1...v2.0.0
5255
[1.3.1]: https://github.com/AymDev/CommonMarkBundle/compare/v1.3.0...v1.3.1
5356
[1.3.0]: https://github.com/AymDev/CommonMarkBundle/compare/v1.2.0...v1.3.0

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"phpcompatibility/php-compatibility": "^9.3",
3939
"phpstan/phpstan": "^1.2",
4040
"phpstan/extension-installer": "^1.1",
41-
"phpstan/phpstan-strict-rules": "^1.1"
41+
"phpstan/phpstan-strict-rules": "^1.1",
42+
"sebastian/phpcpd": "^6.0"
4243
}
4344
}

0 commit comments

Comments
 (0)