Skip to content

Commit

Permalink
chore: Add empty rector configuration
Browse files Browse the repository at this point in the history
Only applying on apps for now, and only minimal type coverage level.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Sep 19, 2024
1 parent 00a27af commit ab289f9
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 0 deletions.
25 changes: 25 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

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

use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/apps',
// __DIR__ . '/config',
// __DIR__ . '/core',
// __DIR__ . '/lib',
// __DIR__ . '/ocs',
// __DIR__ . '/ocs-provider',
// __DIR__ . '/tests',
// __DIR__ . '/themes',
])
// uncomment to reach your current PHP version
// ->withPhpSets()
->withTypeCoverageLevel(0);
6 changes: 6 additions & 0 deletions vendor-bin/rector/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require-dev": {
"rector/rector": "^1.2",
"nextcloud/rector": "^0.2.0"
}
}
198 changes: 198 additions & 0 deletions vendor-bin/rector/composer.lock

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

0 comments on commit ab289f9

Please sign in to comment.