Skip to content

Commit d417e6e

Browse files
committed
chore(deps): upgrade Rector and use Nextcloud rules
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
1 parent 4123450 commit d417e6e

6 files changed

Lines changed: 401 additions & 25 deletions

File tree

rector.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,26 @@
77
* SPDX-License-Identifier: AGPL-3.0-or-later
88
*/
99

10+
use Nextcloud\Rector\Set\NextcloudSets;
1011
use Rector\Config\RectorConfig;
1112

1213
return RectorConfig::configure()
1314
->withPaths([
1415
__DIR__ . '/lib',
1516
__DIR__ . '/tests',
1617
])
17-
->withImportNames(importShortClasses:false)
18+
->withSkipPath(__DIR__ . '/tests/data')
19+
->withImportNames(importShortClasses: false)
1820
->withPreparedSets(
1921
codeQuality: true,
2022
codingStyle: true,
2123
deadCode: true,
2224
earlyReturn: true,
2325
instanceOf: true,
2426
privatization: true,
25-
strictBooleans: true,
2627
)
27-
->withPhpSets(php82: true);
28+
->withPhpSets(php82: true)
29+
->withSets([
30+
NextcloudSets::NEXTCLOUD_34,
31+
]);
32+
;

vendor-bin/rector/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"require-dev": {
3-
"rector/rector": "^1.2"
4-
}
2+
"require-dev": {
3+
"nextcloud/rector": "^0.5.1"
4+
}
55
}

0 commit comments

Comments
 (0)