Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Introduce composer-unused #7536

Merged
merged 6 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
- name: Check - phpstan
run: ./dev-tools/vendor/bin/phpstan analyse --ansi

- name: Check - composer-unused
run: ./dev-tools/vendor/bin/composer-unused --no-progress --excludePackage=composer/xdebug-handler

- name: Check - composer-require-checker
run: ./dev-tools/vendor/bin/composer-require-checker check composer.json --config-file .composer-require-checker.json

Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"./dev-tools/check_file_permissions.sh",
"./dev-tools/check_trailing_spaces.sh",
"@normalize",
"@unused-deps",
"@require-checker",
"@auto-review"
],
Expand Down Expand Up @@ -137,7 +138,8 @@
"test:unit": [
"Composer\\Config::disableProcessTimeout",
"paraunit run --testsuite unit"
]
],
"unused-deps": "@php dev-tools/vendor/bin/composer-unused --excludePackage=composer/xdebug-handler"
},
"scripts-descriptions": {
"auto-review": "Execute Auto-review",
Expand All @@ -162,6 +164,7 @@
"test:coverage": "Run tests that provide code coverage",
"test:integration": "Run Integration tests",
"test:smoke": "Run Smoke tests",
"test:unit": "Run Unit tests"
"test:unit": "Run Unit tests",
"unused-deps": "Verifies if app has dependencies that are not used"
}
}
1 change: 1 addition & 0 deletions dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"require": {
"php": "^8.3",
"ergebnis/composer-normalize": "^2.39.0",
"icanhazstring/composer-unused": "^0.8.11",
"maglnet/composer-require-checker": "^4.7.1",
"mi-schi/phpmd-extension": "^4.3.0",
"pdepend/pdepend": "~2.15.0",
Expand Down
Loading