mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-08 21:40:42 +02:00
update ECS and composer.json, allow PHP 7.2+
This commit is contained in:
4
.github/workflows/coding_standard.yaml
vendored
4
.github/workflows/coding_standard.yaml
vendored
@@ -12,9 +12,9 @@ jobs:
|
||||
# see https://github.com/shivammathur/setup-php
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
php-version: 8.0
|
||||
coverage: none
|
||||
|
||||
- run: composer install --no-progress --ansi
|
||||
|
||||
- run: vendor/bin/ecs check-markdown README.md --ansi
|
||||
- run: vendor/bin/ecs check-markdown README.md --ansi
|
||||
|
@@ -1,7 +1,9 @@
|
||||
{
|
||||
"name": "jupeter/clean-code-php",
|
||||
"description": "Clean Code concepts adapted for PHP",
|
||||
"require": {
|
||||
"php": "^7.2",
|
||||
"symplify/easy-coding-standard": "^8.3"
|
||||
"php": ">=7.2",
|
||||
"symplify/easy-coding-standard": "^9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"check-cs": "vendor/bin/ecs check-markdown README.md",
|
||||
|
15
ecs.php
15
ecs.php
@@ -11,19 +11,14 @@ use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void
|
||||
{
|
||||
$containerConfigurator->import(SetList::COMMON);
|
||||
$containerConfigurator->import(SetList::CLEAN_CODE);
|
||||
$containerConfigurator->import(SetList::PSR_12);
|
||||
$containerConfigurator->import(SetList::SYMPLIFY);
|
||||
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/config', __DIR__ . '/ecs.php']);
|
||||
|
||||
$parameters->set(Option::SETS, [
|
||||
SetList::COMMON,
|
||||
SetList::CLEAN_CODE,
|
||||
SetList::DEAD_CODE,
|
||||
SetList::PSR_12,
|
||||
SetList::PHP_70,
|
||||
SetList::PHP_71,
|
||||
SetList::SYMPLIFY,
|
||||
]);
|
||||
|
||||
$parameters->set(Option::SKIP, [
|
||||
BlankLineAfterOpeningTagFixer::class => null,
|
||||
StrictComparisonFixer::class => null,
|
||||
|
Reference in New Issue
Block a user