Skip to content

Commit

Permalink
add (empty) config sets for SS releases
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkrauss committed Oct 22, 2024
1 parent 5280453 commit 18a4235
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/level/up-to-silverstripe-5-2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare (strict_types=1);


use Netwerkstatt\SilverstripeRector\Set\SilverstripeLevelSetList;
use Netwerkstatt\SilverstripeRector\Set\SilverstripeSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([
SilverstripeLevelSetList::UP_TO_SS_5_1,
SilverstripeSetList::SS_5_2
]);
};
15 changes: 15 additions & 0 deletions config/level/up-to-silverstripe-5-3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare (strict_types=1);


use Netwerkstatt\SilverstripeRector\Set\SilverstripeLevelSetList;
use Netwerkstatt\SilverstripeRector\Set\SilverstripeSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([
SilverstripeLevelSetList::UP_TO_SS_5_2,
SilverstripeSetList::SS_5_3
]);
};
15 changes: 15 additions & 0 deletions config/level/up-to-silverstripe-6-0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare (strict_types=1);


use Netwerkstatt\SilverstripeRector\Set\SilverstripeLevelSetList;
use Netwerkstatt\SilverstripeRector\Set\SilverstripeSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([
SilverstripeLevelSetList::UP_TO_SS_5_3,
SilverstripeSetList::SS_6_0
]);
};
10 changes: 10 additions & 0 deletions config/silverstripe-5-2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {


};
10 changes: 10 additions & 0 deletions config/silverstripe-5-3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {


};
10 changes: 10 additions & 0 deletions config/silverstripe-6-0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {


};
3 changes: 3 additions & 0 deletions src/Set/SilverstripeLevelSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ final class SilverstripeLevelSetList implements \Rector\Set\Contract\SetListInte
public const UP_TO_SS_4_13 = __DIR__ . '/../../config/level/up-to-silverstripe-4-13.php';
public const UP_TO_SS_5_0 = __DIR__ . '/../../config/level/up-to-silverstripe-5-0.php';
public const UP_TO_SS_5_1 = __DIR__ . '/../../config/level/up-to-silverstripe-5-1.php';
public const UP_TO_SS_5_2 = __DIR__ . '/../../config/level/up-to-silverstripe-5-2.php';
public const UP_TO_SS_5_3 = __DIR__ . '/../../config/level/up-to-silverstripe-5-3.php';
public const UP_TO_SS_6_0 = __DIR__ . '/../../config/level/up-to-silverstripe-6-0.php';
}
3 changes: 3 additions & 0 deletions src/Set/SilverstripeSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ final class SilverstripeSetList implements \Rector\Set\Contract\SetListInterface
public const SS_4_13 = __DIR__ . '/../../config/silverstripe-4-13.php';
public const SS_5_0 = __DIR__ . '/../../config/silverstripe-5-0.php';
public const SS_5_1 = __DIR__ . '/../../config/silverstripe-5-1.php';
public const SS_5_2 = __DIR__ . '/../../config/silverstripe-5-2.php';
public const SS_5_3 = __DIR__ . '/../../config/silverstripe-5-3.php';
public const SS_6_0 = __DIR__ . '/../../config/silverstripe-6-0.php';
}

0 comments on commit 18a4235

Please sign in to comment.