From dbb53261671b15234cb4836f8bafb8a64cc4580d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Jan 2025 20:04:34 +0000 Subject: [PATCH 1/2] Add Almacareer SetList --- README.md | 6 ++++-- src/Set/SetList.php | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/Set/SetList.php diff --git a/README.md b/README.md index d9bb784..5363a90 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ composer require --dev lmc/coding-standard ```php withRootFiles() // to also check ecs.php and all other php files in the root directory ->withSets( [ - __DIR__ . '/vendor/lmc/coding-standard/ecs.php', + SetList::ALMACAREER, ] ); ``` @@ -67,6 +68,7 @@ Below find examples of some more opinionated checks you may want to add dependin ```php withSets( [ - __DIR__ . '/vendor/lmc/coding-standard/ecs.php', + SetList::ALMACAREER, ] ) ->withRules( diff --git a/src/Set/SetList.php b/src/Set/SetList.php new file mode 100644 index 0000000..4f30ece --- /dev/null +++ b/src/Set/SetList.php @@ -0,0 +1,11 @@ + Date: Thu, 27 Feb 2025 15:30:01 +0100 Subject: [PATCH 2/2] Use Almacareer setlist in internal ecs rules --- ecs-internal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecs-internal.php b/ecs-internal.php index 944036e..1cdb314 100644 --- a/ecs-internal.php +++ b/ecs-internal.php @@ -1,5 +1,6 @@ withRootFiles() ->withSets( [ - __DIR__ . '/ecs.php', + SetList::ALMACAREER, ], ) ->withConfiguredRule(PhpUnitTestAnnotationFixer::class, ['style' => 'annotation'])