Skip to content

Commit

Permalink
[TASK] Remove composer normalizer and phpcpd (#447)
Browse files Browse the repository at this point in the history
Change-Id: I14567be535e95dc7a75aeecc6e70af26d71053d2
  • Loading branch information
bmack authored Oct 4, 2024
1 parent 6ffe1bc commit 7a814c4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 572 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
- name: Validate composer.json
run: composer ci:composer:validate

- name: Normalize composer.json
run: composer ci:composer:normalize

- name: Check dependencies
run: composer ci:composer:require-checker

Expand Down Expand Up @@ -305,44 +302,6 @@ jobs:
- name: Validation of coding standards
run: composer ci:php:sniff

php_copypaste_detector:
name: PHP Copy/Paste Detector
needs:
- php_lint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: ctype, iconv, json, sqlite3, tokenizer, zip, zlib
ini-values: memory_limit=-1, error_reporting=E_ALL, display_errors=On
php-version: '8.2'
tools: composer:2

- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-latest-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-latest-
${{ runner.os }}-composer-
- name: Install dependencies
run: composer install ${{ env.COMPOSER_INSTALL_FLAGS }} ${{ env.COMPOSER_FLAGS }}

- name: Detection of copy/paste code in PHP files
run: composer ci:php:copypaste

php_stan:
name: PHP Stan
needs:
Expand Down Expand Up @@ -545,7 +504,6 @@ jobs:
- validation
- php_coding_standards
- php_sniff
- php_copypaste_detector
- php_stan
- php_rector
- coveralls-finish
Expand Down
9 changes: 0 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"ergebnis/composer-normalize": "^2.28",
"fakerphp/faker": "^1.20",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "^6.2",
Expand Down Expand Up @@ -142,7 +141,6 @@
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"ergebnis/composer-normalize": true,
"symfony/flex": true,
"symfony/runtime": true
},
Expand Down Expand Up @@ -211,10 +209,8 @@
"@ci:php:rector",
"@ci:php:cs-fixer",
"@ci:php:sniff",
"@ci:php:copypaste",
"@ci:php:stan"
],
"ci:php:copypaste": "@php phpcpd src tests",
"ci:php:cs-fixer": "@php php-cs-fixer fix -v --dry-run --diff",
"ci:php:lint": "@php phplint --no-progress",
"ci:php:rector": "@php rector process --dry-run --no-progress-bar || true",
Expand All @@ -237,13 +233,8 @@
"ci:tests:php:unit": "@php phpunit -c tests/Unit/phpunit.xml",
"ci:yaml:lint": "@php yaml-lint .ddev config",
"fix": [
"@fix:composer",
"@fix:php"
],
"fix:composer": [
"@fix:composer:normalize"
],
"fix:composer:normalize": "@composer normalize",
"fix:php": [
"@fix:php:rector",
"@fix:php:cs-fixer"
Expand Down
Loading

0 comments on commit 7a814c4

Please sign in to comment.