mediatis / typo3-coding-standards
Mediatis - TYPO3 Coding Standards
Installs: 3 862
Dependents: 17
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- helmich/typo3-typoscript-lint: ^3.1.0
- mediatis/coding-standards: ^1.1.3
- php-coveralls/php-coveralls: ^2.6.0
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan-strict-rules: ^1.5.1
- saschaegerer/phpstan-typo3: ^1.9.0
- seld/jsonlint: ^1.10.0
- ssch/typo3-rector: ^1.8.1
- symfony/yaml: ^5.3.6 || ^6.2.0
- typo3/cms-core: ^11.5 || ^12.4
- typo3/cms-fluid-styled-content: ^11.5.4 || ^12.4.0
- typo3/coding-standards: ^0.6.1
- typo3/testing-framework: ^7.0.4
Conflicts
- typo3/class-alias-loader: < 1.1.0
README
Installation
Make sure that you removed old code quality and pipeline configuration files or folders, e.g. rector.php
, .php-cs-fixer.php
, .phpstan
.
Make sure, your composer.json
does not have any dev-requirements on explicit code-quality packages (like phpunit/phpunit
, rector/rector
, typo3/coding-standards
and so on).
Make sure your .gitignore
file includes the folder .Build
and the file composer.lock
.
.Build
composer.lock
Install the TYPO3 coding-standards package.
composer require --dev --with-all-dependencies mediatis/typo3-coding-standards
Run the kickstart script to install configuration files. Pass the lowest TYPO3 major version number that your extension supports.
./.Build/bin/mediatis-typo3-coding-standards-setup 11|12
Usage - Check
Run all checks:
composer ci
Run group checks:
# run all code quality checks
composer ci:static
# all php tests and code quality checks
composer ci:php
composer ci:composer
composer ci:yaml
composer ci:json
Run specific checks:
composer ci:composer:normalize
composer ci:composer:psr-verify
composer ci:composer:validate
composer ci:php:lint
composer ci:php:rector
composer ci:php:cs-fixer
composer ci:php:stan
composer ci:php:tests:unit
composer ci:php:tests:functional
composer ci:yaml:lint
composer ci:json:lint
Usage - Fix
Run all fixes:
composer fix
Run group fixes:
composer fix:composer
composer fix:php
Run specific fixes:
composer fix:php:rector
composer fix:php:cs
composer fix:composer:normalize