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/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']) 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 @@ +