mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 14:36:12 +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: matrix:
command: command:
- "composer:normalize" - "composer:normalize"
- "composer:psr-verify"
- "json:lint" - "json:lint"
- "php:copypaste" - "php:copypaste"
- "php:cs-fixer" - "php:cs-fixer"

View file

@ -12,6 +12,7 @@ include:
- '/.gitlab/pipeline/jobs/.variables.yml' - '/.gitlab/pipeline/jobs/.variables.yml'
- '/.gitlab/pipeline/jobs/build-composer-dependencies.yml' - '/.gitlab/pipeline/jobs/build-composer-dependencies.yml'
- '/.gitlab/pipeline/jobs/composer-normalize.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-highest.yml'
- '/.gitlab/pipeline/jobs/func-php7.4-v11-lowest.yml' - '/.gitlab/pipeline/jobs/func-php7.4-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.0-v11-highest.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:static"
], ],
"ci:composer:normalize": "@composer normalize --no-check-lock --dry-run", "ci:composer:normalize": "@composer normalize --no-check-lock --dry-run",
"ci:composer:psr-verify": "@composer dumpautoload --optimize --strict-psr",
"ci:coverage": [ "ci:coverage": [
"@ci:coverage:unit", "@ci:coverage:unit",
"@ci:coverage:functional" "@ci:coverage:functional"
@ -194,6 +195,7 @@
"scripts-descriptions": { "scripts-descriptions": {
"ci": "Runs all dynamic and static code checks.", "ci": "Runs all dynamic and static code checks.",
"ci:composer:normalize": "Checks the composer.json.", "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:functional": "Generates the code coverage report for functional tests.",
"ci:coverage:merge": "Merges the code coverage reports for unit and 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.", "ci:coverage:unit": "Generates the code coverage report for unit tests.",