Skip to content

Commit 44d3971

Browse files
committed
Add Nexus83 and Nexus84 rulesets
1 parent 5cc0b40 commit 44d3971

File tree

4 files changed

+114
-0
lines changed

4 files changed

+114
-0
lines changed

src/Ruleset/Nexus83.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of Nexus CS Config.
7+
*
8+
* (c) 2020 John Paul E. Balandan, CPA <[email protected]>
9+
*
10+
* For the full copyright and license information, please view
11+
* the LICENSE file that was distributed with this source code.
12+
*/
13+
14+
namespace Nexus\CsConfig\Ruleset;
15+
16+
/**
17+
* Ruleset for `Nexus` group.
18+
*
19+
* @internal
20+
*/
21+
final class Nexus83 extends AbstractRuleset
22+
{
23+
public function __construct()
24+
{
25+
$this->name = 'Nexus for PHP 8.3';
26+
$this->rules = (new Nexus82())->getRules();
27+
$this->requiredPHPVersion = 8_03_00;
28+
$this->autoActivateIsRiskyAllowed = true;
29+
}
30+
}

src/Ruleset/Nexus84.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of Nexus CS Config.
7+
*
8+
* (c) 2020 John Paul E. Balandan, CPA <[email protected]>
9+
*
10+
* For the full copyright and license information, please view
11+
* the LICENSE file that was distributed with this source code.
12+
*/
13+
14+
namespace Nexus\CsConfig\Ruleset;
15+
16+
/**
17+
* Ruleset for `Nexus` group.
18+
*
19+
* @internal
20+
*/
21+
final class Nexus84 extends AbstractRuleset
22+
{
23+
public function __construct()
24+
{
25+
$this->name = 'Nexus for PHP 8.4';
26+
$this->rules = (new Nexus83())->getRules();
27+
$this->requiredPHPVersion = 8_04_01;
28+
$this->autoActivateIsRiskyAllowed = true;
29+
}
30+
}

tests/Ruleset/Nexus83Test.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of Nexus CS Config.
7+
*
8+
* (c) 2020 John Paul E. Balandan, CPA <[email protected]>
9+
*
10+
* For the full copyright and license information, please view
11+
* the LICENSE file that was distributed with this source code.
12+
*/
13+
14+
namespace Nexus\CsConfig\Tests\Ruleset;
15+
16+
use Nexus\CsConfig\Ruleset\AbstractRuleset;
17+
use Nexus\CsConfig\Ruleset\Nexus83;
18+
use Nexus\CsConfig\Test\AbstractRulesetTestCase;
19+
use PHPUnit\Framework\Attributes\CoversClass;
20+
21+
/**
22+
* @internal
23+
*/
24+
#[CoversClass(AbstractRuleset::class)]
25+
#[CoversClass(Nexus83::class)]
26+
#[CoversClass(AbstractRulesetTestCase::class)]
27+
final class Nexus83Test extends AbstractRulesetTestCase {}

tests/Ruleset/Nexus84Test.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of Nexus CS Config.
7+
*
8+
* (c) 2020 John Paul E. Balandan, CPA <[email protected]>
9+
*
10+
* For the full copyright and license information, please view
11+
* the LICENSE file that was distributed with this source code.
12+
*/
13+
14+
namespace Nexus\CsConfig\Tests\Ruleset;
15+
16+
use Nexus\CsConfig\Ruleset\AbstractRuleset;
17+
use Nexus\CsConfig\Ruleset\Nexus84;
18+
use Nexus\CsConfig\Test\AbstractRulesetTestCase;
19+
use PHPUnit\Framework\Attributes\CoversClass;
20+
21+
/**
22+
* @internal
23+
*/
24+
#[CoversClass(AbstractRuleset::class)]
25+
#[CoversClass(Nexus84::class)]
26+
#[CoversClass(AbstractRulesetTestCase::class)]
27+
final class Nexus84Test extends AbstractRulesetTestCase {}

0 commit comments

Comments
 (0)