@@ -8,24 +8,24 @@ |
||
| 8 | 8 | $nextcloudDir = dirname(__DIR__); |
| 9 | 9 | |
| 10 | 10 | return (require __DIR__ . '/rector-shared.php') |
| 11 | - ->withPaths([ |
|
| 12 | - $nextcloudDir . '/build/rector-strict.php', |
|
| 13 | - // TODO: Add more files. The entry above is just there to stop rector from complaining about the fact that it ran without checking any files. |
|
| 14 | - ]) |
|
| 15 | - ->withPreparedSets( |
|
| 16 | - deadCode: true, |
|
| 17 | - codeQuality: true, |
|
| 18 | - codingStyle: true, |
|
| 19 | - typeDeclarations: true, |
|
| 20 | - typeDeclarationDocblocks: true, |
|
| 21 | - privatization: true, |
|
| 22 | - instanceOf: true, |
|
| 23 | - earlyReturn: true, |
|
| 24 | - rectorPreset: true, |
|
| 25 | - phpunitCodeQuality: true, |
|
| 26 | - doctrineCodeQuality: true, |
|
| 27 | - symfonyCodeQuality: true, |
|
| 28 | - symfonyConfigs: true, |
|
| 29 | - )->withPhpSets( |
|
| 30 | - php82: true, |
|
| 31 | - ); |
|
| 11 | + ->withPaths([ |
|
| 12 | + $nextcloudDir . '/build/rector-strict.php', |
|
| 13 | + // TODO: Add more files. The entry above is just there to stop rector from complaining about the fact that it ran without checking any files. |
|
| 14 | + ]) |
|
| 15 | + ->withPreparedSets( |
|
| 16 | + deadCode: true, |
|
| 17 | + codeQuality: true, |
|
| 18 | + codingStyle: true, |
|
| 19 | + typeDeclarations: true, |
|
| 20 | + typeDeclarationDocblocks: true, |
|
| 21 | + privatization: true, |
|
| 22 | + instanceOf: true, |
|
| 23 | + earlyReturn: true, |
|
| 24 | + rectorPreset: true, |
|
| 25 | + phpunitCodeQuality: true, |
|
| 26 | + doctrineCodeQuality: true, |
|
| 27 | + symfonyCodeQuality: true, |
|
| 28 | + symfonyConfigs: true, |
|
| 29 | + )->withPhpSets( |
|
| 30 | + php82: true, |
|
| 31 | + ); |
|
@@ -7,9 +7,9 @@ |
||
| 7 | 7 | |
| 8 | 8 | $nextcloudDir = dirname(__DIR__); |
| 9 | 9 | |
| 10 | -return (require __DIR__ . '/rector-shared.php') |
|
| 10 | +return (require __DIR__.'/rector-shared.php') |
|
| 11 | 11 | ->withPaths([ |
| 12 | - $nextcloudDir . '/build/rector-strict.php', |
|
| 12 | + $nextcloudDir.'/build/rector-strict.php', |
|
| 13 | 13 | // TODO: Add more files. The entry above is just there to stop rector from complaining about the fact that it ran without checking any files. |
| 14 | 14 | ]) |
| 15 | 15 | ->withPreparedSets( |
@@ -19,58 +19,58 @@ discard block |
||
| 19 | 19 | $nextcloudDir = dirname(__DIR__); |
| 20 | 20 | |
| 21 | 21 | class NextcloudNamespaceSkipVoter implements ClassNameImportSkipVoterInterface { |
| 22 | - private array $namespacePrefixes = [ |
|
| 23 | - 'OC', |
|
| 24 | - 'OCA', |
|
| 25 | - 'OCP', |
|
| 26 | - ]; |
|
| 27 | - private array $skippedClassNames = [ |
|
| 28 | - 'Backend', |
|
| 29 | - 'Connection', |
|
| 30 | - 'Exception', |
|
| 31 | - 'IManager', |
|
| 32 | - 'IProvider', |
|
| 33 | - 'Manager', |
|
| 34 | - 'Plugin', |
|
| 35 | - 'Provider', |
|
| 36 | - ]; |
|
| 37 | - public function shouldSkip(File $file, FullyQualifiedObjectType $fullyQualifiedObjectType, Node $node) : bool { |
|
| 38 | - if (in_array($fullyQualifiedObjectType->getShortName(), $this->skippedClassNames)) { |
|
| 39 | - // Skip common class names to avoid confusion |
|
| 40 | - return true; |
|
| 41 | - } |
|
| 42 | - foreach ($this->namespacePrefixes as $prefix) { |
|
| 43 | - if (str_starts_with($fullyQualifiedObjectType->getClassName(), $prefix . '\\')) { |
|
| 44 | - // Import Nextcloud namespaces |
|
| 45 | - return false; |
|
| 46 | - } |
|
| 47 | - } |
|
| 48 | - // Skip everything else |
|
| 49 | - return true; |
|
| 50 | - } |
|
| 22 | + private array $namespacePrefixes = [ |
|
| 23 | + 'OC', |
|
| 24 | + 'OCA', |
|
| 25 | + 'OCP', |
|
| 26 | + ]; |
|
| 27 | + private array $skippedClassNames = [ |
|
| 28 | + 'Backend', |
|
| 29 | + 'Connection', |
|
| 30 | + 'Exception', |
|
| 31 | + 'IManager', |
|
| 32 | + 'IProvider', |
|
| 33 | + 'Manager', |
|
| 34 | + 'Plugin', |
|
| 35 | + 'Provider', |
|
| 36 | + ]; |
|
| 37 | + public function shouldSkip(File $file, FullyQualifiedObjectType $fullyQualifiedObjectType, Node $node) : bool { |
|
| 38 | + if (in_array($fullyQualifiedObjectType->getShortName(), $this->skippedClassNames)) { |
|
| 39 | + // Skip common class names to avoid confusion |
|
| 40 | + return true; |
|
| 41 | + } |
|
| 42 | + foreach ($this->namespacePrefixes as $prefix) { |
|
| 43 | + if (str_starts_with($fullyQualifiedObjectType->getClassName(), $prefix . '\\')) { |
|
| 44 | + // Import Nextcloud namespaces |
|
| 45 | + return false; |
|
| 46 | + } |
|
| 47 | + } |
|
| 48 | + // Skip everything else |
|
| 49 | + return true; |
|
| 50 | + } |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | $config = RectorConfig::configure() |
| 54 | - ->withSkip([ |
|
| 55 | - $nextcloudDir . '/apps/*/3rdparty/*', |
|
| 56 | - $nextcloudDir . '/apps/*/build/stubs/*', |
|
| 57 | - $nextcloudDir . '/apps/*/composer/*', |
|
| 58 | - $nextcloudDir . '/apps/*/config/*', |
|
| 59 | - // The mock classes are excluded, as the tests explicitly test the annotations which should not be migrated to attributes |
|
| 60 | - $nextcloudDir . '/tests/lib/AppFramework/Middleware/Mock/*', |
|
| 61 | - $nextcloudDir . '/tests/lib/AppFramework/Middleware/Security/Mock/*', |
|
| 62 | - ]) |
|
| 63 | - // uncomment to reach your current PHP version |
|
| 64 | - // ->withPhpSets() |
|
| 65 | - ->withImportNames(importShortClasses:false) |
|
| 66 | - ->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [ |
|
| 67 | - 'inline_public' => true, |
|
| 68 | - 'rename_property' => true, |
|
| 69 | - ]) |
|
| 70 | - ->withSets([ |
|
| 71 | - NextcloudSets::NEXTCLOUD_27, |
|
| 72 | - PHPUnitSetList::PHPUNIT_100, |
|
| 73 | - ]); |
|
| 54 | + ->withSkip([ |
|
| 55 | + $nextcloudDir . '/apps/*/3rdparty/*', |
|
| 56 | + $nextcloudDir . '/apps/*/build/stubs/*', |
|
| 57 | + $nextcloudDir . '/apps/*/composer/*', |
|
| 58 | + $nextcloudDir . '/apps/*/config/*', |
|
| 59 | + // The mock classes are excluded, as the tests explicitly test the annotations which should not be migrated to attributes |
|
| 60 | + $nextcloudDir . '/tests/lib/AppFramework/Middleware/Mock/*', |
|
| 61 | + $nextcloudDir . '/tests/lib/AppFramework/Middleware/Security/Mock/*', |
|
| 62 | + ]) |
|
| 63 | + // uncomment to reach your current PHP version |
|
| 64 | + // ->withPhpSets() |
|
| 65 | + ->withImportNames(importShortClasses:false) |
|
| 66 | + ->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [ |
|
| 67 | + 'inline_public' => true, |
|
| 68 | + 'rename_property' => true, |
|
| 69 | + ]) |
|
| 70 | + ->withSets([ |
|
| 71 | + NextcloudSets::NEXTCLOUD_27, |
|
| 72 | + PHPUnitSetList::PHPUNIT_100, |
|
| 73 | + ]); |
|
| 74 | 74 | |
| 75 | 75 | $config->registerService(NextcloudNamespaceSkipVoter::class, tag:ClassNameImportSkipVoterInterface::class); |
| 76 | 76 | |
@@ -82,11 +82,11 @@ discard block |
||
| 82 | 82 | $ignoredEntries = array_values($ignoredEntries); |
| 83 | 83 | |
| 84 | 84 | foreach ($ignoredEntries as $ignoredEntry) { |
| 85 | - if (str_ends_with($ignoredEntry, '/')) { |
|
| 86 | - $config->withSkip([$ignoredEntry . '*']); |
|
| 87 | - } else { |
|
| 88 | - $config->withSkip([$ignoredEntry . '/*']); |
|
| 89 | - } |
|
| 85 | + if (str_ends_with($ignoredEntry, '/')) { |
|
| 86 | + $config->withSkip([$ignoredEntry . '*']); |
|
| 87 | + } else { |
|
| 88 | + $config->withSkip([$ignoredEntry . '/*']); |
|
| 89 | + } |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | return $config; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | return true; |
| 41 | 41 | } |
| 42 | 42 | foreach ($this->namespacePrefixes as $prefix) { |
| 43 | - if (str_starts_with($fullyQualifiedObjectType->getClassName(), $prefix . '\\')) { |
|
| 43 | + if (str_starts_with($fullyQualifiedObjectType->getClassName(), $prefix.'\\')) { |
|
| 44 | 44 | // Import Nextcloud namespaces |
| 45 | 45 | return false; |
| 46 | 46 | } |
@@ -52,13 +52,13 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | $config = RectorConfig::configure() |
| 54 | 54 | ->withSkip([ |
| 55 | - $nextcloudDir . '/apps/*/3rdparty/*', |
|
| 56 | - $nextcloudDir . '/apps/*/build/stubs/*', |
|
| 57 | - $nextcloudDir . '/apps/*/composer/*', |
|
| 58 | - $nextcloudDir . '/apps/*/config/*', |
|
| 55 | + $nextcloudDir.'/apps/*/3rdparty/*', |
|
| 56 | + $nextcloudDir.'/apps/*/build/stubs/*', |
|
| 57 | + $nextcloudDir.'/apps/*/composer/*', |
|
| 58 | + $nextcloudDir.'/apps/*/config/*', |
|
| 59 | 59 | // The mock classes are excluded, as the tests explicitly test the annotations which should not be migrated to attributes |
| 60 | - $nextcloudDir . '/tests/lib/AppFramework/Middleware/Mock/*', |
|
| 61 | - $nextcloudDir . '/tests/lib/AppFramework/Middleware/Security/Mock/*', |
|
| 60 | + $nextcloudDir.'/tests/lib/AppFramework/Middleware/Mock/*', |
|
| 61 | + $nextcloudDir.'/tests/lib/AppFramework/Middleware/Security/Mock/*', |
|
| 62 | 62 | ]) |
| 63 | 63 | // uncomment to reach your current PHP version |
| 64 | 64 | // ->withPhpSets() |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $config->registerService(NextcloudNamespaceSkipVoter::class, tag:ClassNameImportSkipVoterInterface::class); |
| 76 | 76 | |
| 77 | 77 | /* Ignore all files ignored by git */ |
| 78 | -$ignoredEntries = shell_exec('git status --porcelain --ignored ' . escapeshellarg($nextcloudDir)); |
|
| 78 | +$ignoredEntries = shell_exec('git status --porcelain --ignored '.escapeshellarg($nextcloudDir)); |
|
| 79 | 79 | $ignoredEntries = explode("\n", $ignoredEntries); |
| 80 | 80 | $ignoredEntries = array_filter($ignoredEntries, static fn (string $line) => str_starts_with($line, '!! ')); |
| 81 | 81 | $ignoredEntries = array_map(static fn (string $line) => substr($line, 3), $ignoredEntries); |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | foreach ($ignoredEntries as $ignoredEntry) { |
| 85 | 85 | if (str_ends_with($ignoredEntry, '/')) { |
| 86 | - $config->withSkip([$ignoredEntry . '*']); |
|
| 86 | + $config->withSkip([$ignoredEntry.'*']); |
|
| 87 | 87 | } else { |
| 88 | - $config->withSkip([$ignoredEntry . '/*']); |
|
| 88 | + $config->withSkip([$ignoredEntry.'/*']); |
|
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
@@ -7,95 +7,95 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | $expectedFiles = [ |
| 10 | - '.', |
|
| 11 | - '..', |
|
| 12 | - '.devcontainer', |
|
| 13 | - '.editorconfig', |
|
| 14 | - '.envrc', |
|
| 15 | - '.git', |
|
| 16 | - '.git-blame-ignore-revs', |
|
| 17 | - '.gitattributes', |
|
| 18 | - '.github', |
|
| 19 | - '.gitignore', |
|
| 20 | - '.gitmodules', |
|
| 21 | - '.htaccess', |
|
| 22 | - '.idea', |
|
| 23 | - '.jshintrc', |
|
| 24 | - '.mailmap', |
|
| 25 | - '.nextcloudignore', |
|
| 26 | - '.npmignore', |
|
| 27 | - '.php-cs-fixer.dist.php', |
|
| 28 | - '.pre-commit-config.yaml', |
|
| 29 | - '.tag', |
|
| 30 | - '.tx', |
|
| 31 | - '.user.ini', |
|
| 32 | - '__mocks__', |
|
| 33 | - '__tests__', |
|
| 34 | - '3rdparty', |
|
| 35 | - 'AUTHORS', |
|
| 36 | - 'CHANGELOG.md', |
|
| 37 | - 'CODE_OF_CONDUCT.md', |
|
| 38 | - 'COPYING', |
|
| 39 | - 'COPYING-README', |
|
| 40 | - 'DESIGN.md', |
|
| 41 | - 'Makefile', |
|
| 42 | - 'README.md', |
|
| 43 | - 'REUSE.toml', |
|
| 44 | - 'SECURITY.md', |
|
| 45 | - 'apps', |
|
| 46 | - 'autotest-checkers.sh', |
|
| 47 | - 'autotest-external.sh', |
|
| 48 | - 'autotest.sh', |
|
| 49 | - 'build', |
|
| 50 | - 'codecov.yml', |
|
| 51 | - 'composer.json', |
|
| 52 | - 'composer.lock', |
|
| 53 | - 'config', |
|
| 54 | - 'console.php', |
|
| 55 | - 'contribute', |
|
| 56 | - 'core', |
|
| 57 | - 'cron.php', |
|
| 58 | - 'custom.d.ts', |
|
| 59 | - 'cypress.config.ts', |
|
| 60 | - 'cypress', |
|
| 61 | - 'dist', |
|
| 62 | - 'eslint.config.js', |
|
| 63 | - 'flake.lock', |
|
| 64 | - 'flake.nix', |
|
| 65 | - 'index.html', |
|
| 66 | - 'index.php', |
|
| 67 | - 'lib', |
|
| 68 | - 'LICENSES', |
|
| 69 | - 'occ', |
|
| 70 | - 'ocs', |
|
| 71 | - 'ocs-provider', |
|
| 72 | - 'openapi.json', |
|
| 73 | - 'package-lock.json', |
|
| 74 | - 'package.json', |
|
| 75 | - 'psalm-ncu.xml', |
|
| 76 | - 'psalm-ocp.xml', |
|
| 77 | - 'psalm-strict.xml', |
|
| 78 | - 'psalm.xml', |
|
| 79 | - 'public.php', |
|
| 80 | - 'remote.php', |
|
| 81 | - 'resources', |
|
| 82 | - 'robots.txt', |
|
| 83 | - 'status.php', |
|
| 84 | - 'stylelint.config.js', |
|
| 85 | - 'tests', |
|
| 86 | - 'themes', |
|
| 87 | - 'tsconfig.json', |
|
| 88 | - 'vendor-bin', |
|
| 89 | - 'version.php', |
|
| 90 | - 'vite.config.ts', |
|
| 91 | - 'vitest.config.ts', |
|
| 92 | - 'window.d.ts', |
|
| 10 | + '.', |
|
| 11 | + '..', |
|
| 12 | + '.devcontainer', |
|
| 13 | + '.editorconfig', |
|
| 14 | + '.envrc', |
|
| 15 | + '.git', |
|
| 16 | + '.git-blame-ignore-revs', |
|
| 17 | + '.gitattributes', |
|
| 18 | + '.github', |
|
| 19 | + '.gitignore', |
|
| 20 | + '.gitmodules', |
|
| 21 | + '.htaccess', |
|
| 22 | + '.idea', |
|
| 23 | + '.jshintrc', |
|
| 24 | + '.mailmap', |
|
| 25 | + '.nextcloudignore', |
|
| 26 | + '.npmignore', |
|
| 27 | + '.php-cs-fixer.dist.php', |
|
| 28 | + '.pre-commit-config.yaml', |
|
| 29 | + '.tag', |
|
| 30 | + '.tx', |
|
| 31 | + '.user.ini', |
|
| 32 | + '__mocks__', |
|
| 33 | + '__tests__', |
|
| 34 | + '3rdparty', |
|
| 35 | + 'AUTHORS', |
|
| 36 | + 'CHANGELOG.md', |
|
| 37 | + 'CODE_OF_CONDUCT.md', |
|
| 38 | + 'COPYING', |
|
| 39 | + 'COPYING-README', |
|
| 40 | + 'DESIGN.md', |
|
| 41 | + 'Makefile', |
|
| 42 | + 'README.md', |
|
| 43 | + 'REUSE.toml', |
|
| 44 | + 'SECURITY.md', |
|
| 45 | + 'apps', |
|
| 46 | + 'autotest-checkers.sh', |
|
| 47 | + 'autotest-external.sh', |
|
| 48 | + 'autotest.sh', |
|
| 49 | + 'build', |
|
| 50 | + 'codecov.yml', |
|
| 51 | + 'composer.json', |
|
| 52 | + 'composer.lock', |
|
| 53 | + 'config', |
|
| 54 | + 'console.php', |
|
| 55 | + 'contribute', |
|
| 56 | + 'core', |
|
| 57 | + 'cron.php', |
|
| 58 | + 'custom.d.ts', |
|
| 59 | + 'cypress.config.ts', |
|
| 60 | + 'cypress', |
|
| 61 | + 'dist', |
|
| 62 | + 'eslint.config.js', |
|
| 63 | + 'flake.lock', |
|
| 64 | + 'flake.nix', |
|
| 65 | + 'index.html', |
|
| 66 | + 'index.php', |
|
| 67 | + 'lib', |
|
| 68 | + 'LICENSES', |
|
| 69 | + 'occ', |
|
| 70 | + 'ocs', |
|
| 71 | + 'ocs-provider', |
|
| 72 | + 'openapi.json', |
|
| 73 | + 'package-lock.json', |
|
| 74 | + 'package.json', |
|
| 75 | + 'psalm-ncu.xml', |
|
| 76 | + 'psalm-ocp.xml', |
|
| 77 | + 'psalm-strict.xml', |
|
| 78 | + 'psalm.xml', |
|
| 79 | + 'public.php', |
|
| 80 | + 'remote.php', |
|
| 81 | + 'resources', |
|
| 82 | + 'robots.txt', |
|
| 83 | + 'status.php', |
|
| 84 | + 'stylelint.config.js', |
|
| 85 | + 'tests', |
|
| 86 | + 'themes', |
|
| 87 | + 'tsconfig.json', |
|
| 88 | + 'vendor-bin', |
|
| 89 | + 'version.php', |
|
| 90 | + 'vite.config.ts', |
|
| 91 | + 'vitest.config.ts', |
|
| 92 | + 'window.d.ts', |
|
| 93 | 93 | ]; |
| 94 | 94 | $actualFiles = []; |
| 95 | 95 | |
| 96 | 96 | $files = new \DirectoryIterator(__DIR__ . '/..'); |
| 97 | 97 | foreach ($files as $file) { |
| 98 | - $actualFiles[] = $file->getFilename(); |
|
| 98 | + $actualFiles[] = $file->getFilename(); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | $additionalFiles = array_diff($actualFiles, $expectedFiles); |
@@ -103,19 +103,19 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | $failed = false; |
| 105 | 105 | if (count($additionalFiles) > 0) { |
| 106 | - echo sprintf('ERROR: There were %d additional files:', count($additionalFiles)) . PHP_EOL; |
|
| 107 | - echo implode(PHP_EOL, $additionalFiles) . PHP_EOL; |
|
| 108 | - $failed = true; |
|
| 106 | + echo sprintf('ERROR: There were %d additional files:', count($additionalFiles)) . PHP_EOL; |
|
| 107 | + echo implode(PHP_EOL, $additionalFiles) . PHP_EOL; |
|
| 108 | + $failed = true; |
|
| 109 | 109 | } |
| 110 | 110 | if (count($missingFiles) > 0) { |
| 111 | - echo sprintf('ERROR: There were %d missing files:', count($missingFiles)) . PHP_EOL; |
|
| 112 | - echo implode(PHP_EOL, $missingFiles) . PHP_EOL; |
|
| 113 | - $failed = true; |
|
| 111 | + echo sprintf('ERROR: There were %d missing files:', count($missingFiles)) . PHP_EOL; |
|
| 112 | + echo implode(PHP_EOL, $missingFiles) . PHP_EOL; |
|
| 113 | + $failed = true; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | if ($failed) { |
| 117 | - echo 'ERROR: Please remove or add those files again or inform the release team about those now files to be included or excluded from the release tar ball.' . PHP_EOL; |
|
| 118 | - exit(1); |
|
| 117 | + echo 'ERROR: Please remove or add those files again or inform the release team about those now files to be included or excluded from the release tar ball.' . PHP_EOL; |
|
| 118 | + exit(1); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | echo 'OK: all expected files are present and no additional files are there.' . PHP_EOL; |
@@ -10,24 +10,24 @@ |
||
| 10 | 10 | $nextcloudDir = dirname(__DIR__); |
| 11 | 11 | |
| 12 | 12 | return (require 'rector-shared.php') |
| 13 | - ->withPaths([ |
|
| 14 | - $nextcloudDir . '/apps', |
|
| 15 | - $nextcloudDir . '/core', |
|
| 16 | - $nextcloudDir . '/ocs', |
|
| 17 | - $nextcloudDir . '/ocs-provider', |
|
| 18 | - $nextcloudDir . '/console.php', |
|
| 19 | - $nextcloudDir . '/cron.php', |
|
| 20 | - $nextcloudDir . '/index.php', |
|
| 21 | - $nextcloudDir . '/occ', |
|
| 22 | - $nextcloudDir . '/public.php', |
|
| 23 | - $nextcloudDir . '/remote.php', |
|
| 24 | - $nextcloudDir . '/status.php', |
|
| 25 | - $nextcloudDir . '/version.php', |
|
| 26 | - $nextcloudDir . '/lib/private/Share20/ProviderFactory.php', |
|
| 27 | - $nextcloudDir . '/lib/private/Template', |
|
| 28 | - $nextcloudDir . '/tests', |
|
| 29 | - // $nextcloudDir . '/config', |
|
| 30 | - // $nextcloudDir . '/lib', |
|
| 31 | - // $nextcloudDir . '/themes', |
|
| 32 | - ]) |
|
| 33 | - ->withTypeCoverageLevel(0); |
|
| 13 | + ->withPaths([ |
|
| 14 | + $nextcloudDir . '/apps', |
|
| 15 | + $nextcloudDir . '/core', |
|
| 16 | + $nextcloudDir . '/ocs', |
|
| 17 | + $nextcloudDir . '/ocs-provider', |
|
| 18 | + $nextcloudDir . '/console.php', |
|
| 19 | + $nextcloudDir . '/cron.php', |
|
| 20 | + $nextcloudDir . '/index.php', |
|
| 21 | + $nextcloudDir . '/occ', |
|
| 22 | + $nextcloudDir . '/public.php', |
|
| 23 | + $nextcloudDir . '/remote.php', |
|
| 24 | + $nextcloudDir . '/status.php', |
|
| 25 | + $nextcloudDir . '/version.php', |
|
| 26 | + $nextcloudDir . '/lib/private/Share20/ProviderFactory.php', |
|
| 27 | + $nextcloudDir . '/lib/private/Template', |
|
| 28 | + $nextcloudDir . '/tests', |
|
| 29 | + // $nextcloudDir . '/config', |
|
| 30 | + // $nextcloudDir . '/lib', |
|
| 31 | + // $nextcloudDir . '/themes', |
|
| 32 | + ]) |
|
| 33 | + ->withTypeCoverageLevel(0); |
|
@@ -11,21 +11,21 @@ |
||
| 11 | 11 | |
| 12 | 12 | return (require 'rector-shared.php') |
| 13 | 13 | ->withPaths([ |
| 14 | - $nextcloudDir . '/apps', |
|
| 15 | - $nextcloudDir . '/core', |
|
| 16 | - $nextcloudDir . '/ocs', |
|
| 17 | - $nextcloudDir . '/ocs-provider', |
|
| 18 | - $nextcloudDir . '/console.php', |
|
| 19 | - $nextcloudDir . '/cron.php', |
|
| 20 | - $nextcloudDir . '/index.php', |
|
| 21 | - $nextcloudDir . '/occ', |
|
| 22 | - $nextcloudDir . '/public.php', |
|
| 23 | - $nextcloudDir . '/remote.php', |
|
| 24 | - $nextcloudDir . '/status.php', |
|
| 25 | - $nextcloudDir . '/version.php', |
|
| 26 | - $nextcloudDir . '/lib/private/Share20/ProviderFactory.php', |
|
| 27 | - $nextcloudDir . '/lib/private/Template', |
|
| 28 | - $nextcloudDir . '/tests', |
|
| 14 | + $nextcloudDir.'/apps', |
|
| 15 | + $nextcloudDir.'/core', |
|
| 16 | + $nextcloudDir.'/ocs', |
|
| 17 | + $nextcloudDir.'/ocs-provider', |
|
| 18 | + $nextcloudDir.'/console.php', |
|
| 19 | + $nextcloudDir.'/cron.php', |
|
| 20 | + $nextcloudDir.'/index.php', |
|
| 21 | + $nextcloudDir.'/occ', |
|
| 22 | + $nextcloudDir.'/public.php', |
|
| 23 | + $nextcloudDir.'/remote.php', |
|
| 24 | + $nextcloudDir.'/status.php', |
|
| 25 | + $nextcloudDir.'/version.php', |
|
| 26 | + $nextcloudDir.'/lib/private/Share20/ProviderFactory.php', |
|
| 27 | + $nextcloudDir.'/lib/private/Template', |
|
| 28 | + $nextcloudDir.'/tests', |
|
| 29 | 29 | // $nextcloudDir . '/config', |
| 30 | 30 | // $nextcloudDir . '/lib', |
| 31 | 31 | // $nextcloudDir . '/themes', |