mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 23:46:10 +01:00

[FEATURE] Add check for PSR-4 namespace correctness (#740)

This commit is contained in:
Łukasz Uznański 2023-02-22 18:46:08 +01:00 committed by GitHub
parent 47033ca0bb
commit f814042f8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 0 deletions

View file

@ -66,6 +66,7 @@ jobs:
matrix:
command:
- "composer:normalize"
- "composer:psr-verify"
- "json:lint"
- "php:copypaste"
- "php:cs-fixer"

View file

@ -12,6 +12,7 @@ include:
- '/.gitlab/pipeline/jobs/.variables.yml'
- '/.gitlab/pipeline/jobs/build-composer-dependencies.yml'
- '/.gitlab/pipeline/jobs/composer-normalize.yml'
- '/.gitlab/pipeline/jobs/composer-psr-verify.yml'
- '/.gitlab/pipeline/jobs/func-php7.4-v11-highest.yml'
- '/.gitlab/pipeline/jobs/func-php7.4-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.0-v11-highest.yml'

View file

@ -0,0 +1,5 @@
composer-psr-verify:
extends: .default
stage: codestyle
script:
- composer ci:composer:psr-verify

View file

@ -103,6 +103,7 @@
"@ci:static"
],
"ci:composer:normalize": "@composer normalize --no-check-lock --dry-run",
"ci:composer:psr-verify": "@composer dumpautoload --optimize --strict-psr",
"ci:coverage": [
"@ci:coverage:unit",
"@ci:coverage:functional"
@ -194,6 +195,7 @@
"scripts-descriptions": {
"ci": "Runs all dynamic and static code checks.",
"ci:composer:normalize": "Checks the composer.json.",
"ci:composer:psr-verify": "Verifies PSR-4 namespace correctness.",
"ci:coverage:functional": "Generates the code coverage report for functional tests.",
"ci:coverage:merge": "Merges the code coverage reports for unit and functional tests.",
"ci:coverage:unit": "Generates the code coverage report for unit tests.",