mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 18:06:10 +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:
Daniel Siepmann 2023-04-06 16:26:51 +02:00 committed by GitHub
parent 4d2bbced74
commit 0e85116d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 34 deletions

View file

@ -69,7 +69,6 @@ jobs:
- "composer:normalize"
- "composer:psr-verify"
- "json:lint"
- "php:copypaste"
- "php:cs-fixer"
- "php:sniff"
- "php:stan"

View file

@ -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

View file

@ -1,8 +0,0 @@
php-copypaste-check:
extends: .default
stage: codestyle
needs:
- build-composer-dependencies
- php-lint-php7.4
script:
- composer ci:php:copypaste

View file

@ -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.

View file

@ -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

View file

@ -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).",

View file

@ -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>

Binary file not shown.