mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-25 08:56:12 +01:00
[TASK] Remove phpcpd (PHP Copy/Paste Detector) (#800)
The project got archived and is not maintained anymore. Resolves: #796
This commit is contained in:
parent
4d2bbced74
commit
0e85116d75
8 changed files with 1 additions and 34 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -69,7 +69,6 @@ jobs:
|
|||
- "composer:normalize"
|
||||
- "composer:psr-verify"
|
||||
- "json:lint"
|
||||
- "php:copypaste"
|
||||
- "php:cs-fixer"
|
||||
- "php:sniff"
|
||||
- "php:stan"
|
||||
|
|
9
.github/workflows/predefined.yml
vendored
9
.github/workflows/predefined.yml
vendored
|
@ -86,15 +86,6 @@ jobs:
|
|||
uses: TYPO3-Continuous-Integration/TYPO3-CI-PHPStan@v1
|
||||
with:
|
||||
config_file: './phpstan.neon'
|
||||
copypaste-detector:
|
||||
name: "Copy'n'paste detector"
|
||||
runs-on: ubuntu-22.04
|
||||
needs: php-lint
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
- name: "Run the Copy'n'paste Detector"
|
||||
uses: TYPO3-Continuous-Integration/TYPO3-CI-Copy-Paste-Detector@v1
|
||||
code-quality:
|
||||
name: "Code quality checks"
|
||||
runs-on: ubuntu-22.04
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
php-copypaste-check:
|
||||
extends: .default
|
||||
stage: codestyle
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.4
|
||||
script:
|
||||
- composer ci:php:copypaste
|
|
@ -15,7 +15,4 @@ a separate PHAR. This helps avoid dependency hell (which means that you cannot
|
|||
install or upgrade some tool as the tool's dependencies conflict with the
|
||||
dependencies on another library). It also allows running versions of tools
|
||||
that require a PHP version that is higher than the lowest allowed PHP version
|
||||
for this project. Currently, we use PHIVE for
|
||||
`PHP Copy/Paste Detector <https://github.com/sebastianbergmann/phpcpd>`__,
|
||||
that requires PHP >= 7.3, which conflicts with this project's PHP version
|
||||
support (we also support PHP 7.2).
|
||||
for this project.
|
||||
|
|
|
@ -68,13 +68,6 @@ Lints the JSON files.
|
|||
|
||||
Runs all static checks for the PHP files.
|
||||
|
||||
.. index:: Commands; composer ci:php:copypaste
|
||||
.. code-block:: bash
|
||||
|
||||
ddev composer ci:php:copypaste
|
||||
|
||||
Checks for copy\'n\'pasted PHP code.
|
||||
|
||||
.. index:: Commands; composer ci:php:cs-fixer
|
||||
.. code-block:: bash
|
||||
|
||||
|
|
|
@ -125,13 +125,11 @@
|
|||
],
|
||||
"ci:json:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -name '*.json' | xargs -r php .Build/vendor/bin/jsonlint -q",
|
||||
"ci:php": [
|
||||
"@ci:php:copypaste",
|
||||
"@ci:php:cs-fixer",
|
||||
"@ci:php:lint",
|
||||
"@ci:php:sniff",
|
||||
"@ci:php:stan"
|
||||
],
|
||||
"ci:php:copypaste": "@php ./tools/phpcpd Classes",
|
||||
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --using-cache no --diff",
|
||||
"ci:php:lint": "find .*.php *.php Classes Configuration Tests -name '*.php' -print0 | xargs -r -0 -n 1 -P 4 php -l",
|
||||
"ci:php:sniff": "phpcs Classes Configuration Tests",
|
||||
|
@ -139,7 +137,6 @@
|
|||
"ci:static": [
|
||||
"@ci:composer:normalize",
|
||||
"@ci:json:lint",
|
||||
"@ci:php:copypaste",
|
||||
"@ci:php:cs-fixer",
|
||||
"@ci:php:lint",
|
||||
"@ci:php:sniff",
|
||||
|
@ -202,7 +199,6 @@
|
|||
"ci:dynamic": "Runs all PHPUnit tests (unit and functional).",
|
||||
"ci:json:lint": "Lints the JSON files.",
|
||||
"ci:php": "Runs all static checks for the PHP files.",
|
||||
"ci:php:copypaste": "Checks for copy'n'pasted PHP code.",
|
||||
"ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).",
|
||||
"ci:php:lint": "Lints the PHP files for syntax errors.",
|
||||
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phive xmlns="https://phar.io/phive">
|
||||
<phar name="phar-io/phive" version="^0.15.2" installed="0.15.2" location="./tools/phive" copy="true"/>
|
||||
<phar name="phpcpd" version="^6.0.3" installed="6.0.3" location="./tools/phpcpd" copy="true"/>
|
||||
<phar name="phpcov" version="^8.2.1" installed="8.2.1" location="./tools/phpcov" copy="true"/>
|
||||
</phive>
|
||||
|
|
BIN
tools/phpcpd
BIN
tools/phpcpd
Binary file not shown.
Loading…
Reference in a new issue