Skip to content

Commit 1f89d25

Browse files
committed
reinstate phpcpd
1 parent 114ca2d commit 1f89d25

File tree

3 files changed

+56
-1
lines changed

3 files changed

+56
-1
lines changed

ci/qa/phpcpd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
cd $(dirname $0)/../../
4+
5+
# https://github.com/sebastianbergmann/phpcpd
6+
vendor/bin/phpcpd \
7+
--exclude src/Surfnet/StepupGateway/GatewayBundle/Tests/Sso2fa/CookieServiceTest.php \
8+
--exclude src/Surfnet/StepupGateway/GatewayBundle/Tests/Service/Gateway/ConsumeAssertionServiceTest.php \
9+
--exclude src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Tests/Service/Gateway/RespondServiceTest.php \
10+
./src $1

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"dmore/chrome-mink-driver": "2.9.*",
6262
"friends-of-behat/mink-extension": "^2.7.5",
6363
"friends-of-behat/symfony-extension": "^2.6.2",
64+
"irstea/phpcpd-shim": "^6.0",
6465
"malukenho/docheader": "^1.1.0",
6566
"matthiasnoback/symfony-config-test": "^6.1",
6667
"mockery/mockery": "^1.6.12",
@@ -102,6 +103,7 @@
102103
],
103104
"check-ci": [
104105
"@phplint",
106+
"@phpcpd",
105107
"@validate-lockfile",
106108
"@license-headers",
107109
"@phpstan",
@@ -115,6 +117,7 @@
115117
"phplint": "./ci/qa/phplint",
116118
"validate-lockfile": "./ci/qa/validate",
117119
"phpcs": "./ci/qa/phpcs",
120+
"phpcpd": "./ci/qa/phpcpd",
118121
"phpcbf": "./ci/qa/phpcbf",
119122
"phpstan": "./ci/qa/phpstan",
120123
"phpmd": "./ci/qa/phpmd",

composer.lock

Lines changed: 43 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)