Skip to content

Commit

Permalink
chore: Add rector
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Sep 18, 2024
1 parent ddcb797 commit dd7e2e5
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 2 deletions.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"config": {
"platform": {
"php": "8.0"
},
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"require": {
Expand All @@ -19,7 +22,8 @@
"friendsofphp/php-cs-fixer": "^3.8",
"nextcloud/coding-standard": "^1.0",
"nextcloud/ocp": "dev-master",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^9.5",
"bamarni/composer-bin-plugin": "^1.8"
},
"license": "AGPLv3",
"authors": [
Expand Down
59 changes: 58 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/

use Nextcloud\Rector\Set\NextcloudSets;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/appinfo',
__DIR__ . '/lib',
__DIR__ . '/tests',
])
->withPhpSets(php81: true)
->withTypeCoverageLevel(0)
->withSets([
// NextcloudSets::NEXTCLOUD_30,
]);

0 comments on commit dd7e2e5

Please sign in to comment.