Skip to content

Commit 2c3a2f3

Browse files
committed
Add rector with ASC rules
1 parent dafe4b2 commit 2c3a2f3

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"require-dev": {
25-
"assoconnect/php-quality-config": "^1.11"
25+
"assoconnect/php-quality-config": "^1.2"
2626
},
2727
"require": {
2828
"php": "^8.2"

rector.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withPaths([
9+
__DIR__ . '/src',
10+
__DIR__ . '/tests',
11+
])
12+
// uncomment to reach your current PHP version
13+
// ->withPhpSets()
14+
->withTypeCoverageLevel(0)
15+
->withSets([
16+
__DIR__ . '/vendor/assoconnect/php-quality-config/src/Rector/rules.php',
17+
]);

0 commit comments

Comments
 (0)