Skip to content

Commit 0db2b07

Browse files
committed
rename *.yml to *.yaml
1 parent 85f698b commit 0db2b07

File tree

115 files changed

+59
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+59
-59
lines changed

.gitattributes

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ LICENSE export-ignore
2121
ecs.yml export-ignore
2222
phpstan.neon export-ignore
2323
phpunit.xml export-ignore
24-
create-rector.yml.dist export-ignore
25-
rector.yml export-ignore
24+
create-rector.yaml.dist export-ignore
25+
rector.yaml export-ignore

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/rector.yml
1+
/rector.yaml
22
/temp
33
!/temp/.gitkeep
44
/example
@@ -8,10 +8,10 @@ composer.lock
88
.idea/
99

1010
/demo
11-
rector-symfony.yml
11+
1212
.phpunit.result.cache
1313

1414
# often customized locally - example on Github is just fine
15-
create-rector.yml
15+
create-rector.yaml
1616
phpstan-dependencies.json
1717
phpstan-paths.txt

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ WORKDIR /rector
1212
COPY . /rector
1313
COPY --from=composer /app .
1414

15-
CMD ["bin/rector", "process", "/project", "--dry-run", "--config", "/project/rector.yml"]
15+
CMD ["bin/rector", "process", "/project", "--dry-run", "--config", "/project/rector.yaml"]
1616

1717
# TODO: dev with xdebug extension for local development

README.md

+5-5

bin/clean_trailing_spaces.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22
# trailing whitespaces
3-
sed -i -E 's#\s+$##g' config/level/*/*.yml docs/*.md README.md
3+
sed -i -E 's#\s+$##g' config/level/*/*.yaml docs/*.md README.md

config/config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
imports:
2+
- { resource: '../packages/**/config/config.yaml' }
3+
- { resource: 'services.yaml' }
4+
5+
parameters:
6+
exclude_paths: []
7+
exclude_rectors: []
8+
autoload_paths: []

config/config.yml

-8
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

config/level/php/php70.yml config/level/php/php70.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
imports:
2-
- { resource: "mysql_to_mysqli.yml" }
2+
- { resource: "mysql_to_mysqli.yaml" }
33

44
services:
55
Rector\Php\Rector\FunctionLike\Php4ConstructorRector: ~
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
imports:
22
# underscore naming to namespaced classes changes
3-
- { resource: 'underscore-to-namespace.yml' }
3+
- { resource: 'underscore-to-namespace.yaml' }
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
imports:
22
# underscore naming to namespaced classes changes
3-
- { resource: 'underscore-to-namespace.yml' }
3+
- { resource: 'underscore-to-namespace.yaml' }
File renamed without changes.

create-rector.yml.dist create-rector.yaml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ code_after: |
2828

2929
source: # e.g. link to RFC or headline in upgrade guide, 1 or more in the list
3030
- ""
31-
level: "" # e.g. symfony30.yml, target config to append this rector to
31+
level: "" # e.g. symfony30.yaml, target config to append this rector to

docs/HowItWorks.md

+2-2

docs/HowToCreateOwnRector.md

+3-3

packages/ContributorTools/src/Command/CreateRectorCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function configure(): void
8181

8282
protected function execute(InputInterface $input, OutputInterface $output): int
8383
{
84-
$configuration = $this->configurationFactory->createFromConfigFile(getcwd() . '/create-rector.yml');
84+
$configuration = $this->configurationFactory->createFromConfigFile(getcwd() . '/create-rector.yaml');
8585
$templateVariables = $this->templateVariablesFactory->createFromConfiguration($configuration);
8686

8787
foreach ($this->findTemplateFileInfos() as $smartFileInfo) {

packages/ContributorTools/src/Configuration/ConfigurationFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function resolveLevelConfig(string $level): ?string
133133

134134
$finder = Finder::create()->files()
135135
->in($this->levelsDirectory)
136-
->name(sprintf('#%s(\.yml)?$#', $level));
136+
->name(sprintf('#%s(\.yaml)?$#', $level));
137137

138138
/** @var SplFileInfo[] $fileInfos */
139139
$fileInfos = iterator_to_array($finder->getIterator());

packages/Jms/tests/Rector/Property/JmsInjectAnnotationRector/JmsInjectAnnotationRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ public function test(): void
1919

2020
protected function provideConfig(): string
2121
{
22-
return __DIR__ . '/config.yml';
22+
return __DIR__ . '/config.yaml';
2323
}
2424
}
File renamed without changes.

packages/Php/src/EregToPcreTransformer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class EregToPcreTransformer
1717
private $pcreDelimiter;
1818

1919
/**
20-
* Change this via services configuratoin in rector.yml if you need it
20+
* Change this via services configuratoin in rector.yaml if you need it
2121
* Single type is chosen to prevent every regular with different delimiter.
2222
*/
2323
public function __construct(string $pcreDelimiter = '#')

packages/Php/tests/Rector/Each/EachRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public function test(): void
2525

2626
protected function provideConfig(): string
2727
{
28-
return __DIR__ . '/config.yml';
28+
return __DIR__ . '/config.yaml';
2929
}
3030
}

packages/Php/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Php72RectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public function test(): void
1616

1717
protected function provideConfig(): string
1818
{
19-
return __DIR__ . '/config_php72.yml';
19+
return __DIR__ . '/config_php72.yaml';
2020
}
2121
}
File renamed without changes.
File renamed without changes.

packages/Symfony/src/Bridge/SymfonyKernelParameterGuard.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function ensureKernelClassIsValid(?string $kernelClass): void
1313
// ensure value is not null nor empty
1414
if ($kernelClass === null || $kernelClass === '') {
1515
throw new InvalidConfigurationException(sprintf(
16-
'Make sure "%s" parameters is set in rector.yml in "parameters:" section',
16+
'Make sure "%s" parameters is set in rector.yaml in "parameters:" section',
1717
Option::KERNEL_CLASS_PARAMETER
1818
));
1919
}

packages/Symfony/tests/Rector/FrameworkBundle/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public function test(): void
1313

1414
protected function provideConfig(): string
1515
{
16-
return __DIR__ . '/config.yml';
16+
return __DIR__ . '/config.yaml';
1717
}
1818
}

packages/Symfony/tests/Rector/FrameworkBundle/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public function test(): void
1818

1919
protected function provideConfig(): string
2020
{
21-
return __DIR__ . '/config.yml';
21+
return __DIR__ . '/config.yaml';
2222
}
2323
}

packages/Symfony/tests/Rector/FrameworkBundle/GetToConstructorInjectionRector/InvalidConfigurationConstructorInjectionRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function test(): void
1313
{
1414
$this->expectException(InvalidConfigurationException::class);
1515
$this->expectExceptionMessage(
16-
'Make sure "kernel_class" parameters is set in rector.yml in "parameters:" section'
16+
'Make sure "kernel_class" parameters is set in rector.yaml in "parameters:" section'
1717
);
1818

1919
$this->doTestFiles([__DIR__ . '/Fixture/fixture.php.inc']);

packages/Symfony/tests/Rector/FrameworkBundle/GetToConstructorInjectionRector/SecondInvalidConfigurationConstructorInjectionRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public function test(): void
2222

2323
protected function provideConfig(): string
2424
{
25-
return __DIR__ . '/invalid-config-2.yml';
25+
return __DIR__ . '/invalid-config-2.yaml';
2626
}
2727
}

packages/Symfony/tests/Rector/FrameworkBundle/GetToConstructorInjectionRector/ThirdInvalidConfigurationConstructorInjectionRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public function test(): void
2626

2727
protected function provideConfig(): string
2828
{
29-
return __DIR__ . '/invalid-config-3.yml';
29+
return __DIR__ . '/invalid-config-3.yaml';
3030
}
3131
}

src/CodingStyle/AfterRectorCodingStyle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class AfterRectorCodingStyle
1616
/**
1717
* @var string
1818
*/
19-
private const ECS_AFTER_RECTOR_CONFIG = __DIR__ . '/../../ecs-after-rector.yml';
19+
private const ECS_AFTER_RECTOR_CONFIG = __DIR__ . '/../../ecs-after-rector.yaml';
2020

2121
/**
2222
* @param string[] $source

src/Console/Application.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ private function addCustomOptions(InputDefinition $inputDefinition): void
146146

147147
private function getDefaultConfigPath(): string
148148
{
149-
return getcwd() . '/rector.yml';
149+
return getcwd() . '/rector.yaml';
150150
}
151151
}

src/DependencyInjection/RectorKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getCacheDir(): string
5151

5252
public function registerContainerConfiguration(LoaderInterface $loader): void
5353
{
54-
$loader->load(__DIR__ . '/../../config/config.yml');
54+
$loader->load(__DIR__ . '/../../config/config.yaml');
5555

5656
foreach ($this->extraConfigFiles as $extraConfigFile) {
5757
$loader->load($extraConfigFile);

src/Guard/RectorGuard.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function ensureSomeRectorsAreRegistered(): void
2424
}
2525

2626
throw new NoRectorsLoadedException(sprintf(
27-
'We need some rectors to run:%s* register them in rector.yml under "services:"%s* use "--level <level>"%s* or "--config <file>.yml"',
27+
'We need some rectors to run:%s* register them in rector.yaml under "services:"%s* use "--level <level>"%s* or "--config <file>.yaml"',
2828
PHP_EOL,
2929
PHP_EOL,
3030
PHP_EOL

tests/FileSystem/FilesFinder/ExcludePaths/ExcludePathsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public function testShouldFail(): void
2222

2323
protected function provideConfig(): string
2424
{
25-
return __DIR__ . '/config/config-with-excluded-paths.yml';
25+
return __DIR__ . '/config/config-with-excluded-paths.yaml';
2626
}
2727
}

tests/Issues/Issue835/Issue835Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public function test(): void
1313

1414
protected function provideConfig(): string
1515
{
16-
return __DIR__ . '/config/config835.yml';
16+
return __DIR__ . '/config/config835.yaml';
1717
}
1818
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
imports:
2+
# same as "--level cakephp34"
3+
- { resource: "../../../../config/level/cakephp/cakephp34.yaml" }

tests/Issues/Issue835/config/config835.yml

-3
This file was deleted.

tests/Rector/Architecture/DependencyInjection/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public function test(): void
1717

1818
protected function provideConfig(): string
1919
{
20-
return __DIR__ . '/config.yml';
20+
return __DIR__ . '/config.yaml';
2121
}
2222
}

tests/Rector/Architecture/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public function test(): void
1818

1919
protected function provideConfig(): string
2020
{
21-
return __DIR__ . '/config.yml';
21+
return __DIR__ . '/config.yaml';
2222
}
2323
}

tests/Rector/Architecture/DoctrineRepositoryAsService/config.yml tests/Rector/Architecture/DoctrineRepositoryAsService/config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ parameters:
33
entity_manager_class: 'Rector\Tests\Rector\Architecture\DoctrineRepositoryAsService\Source\EntityManagerClass'
44

55
imports:
6-
- { resource: '../../../../config/level/architecture/doctrine-repository-as-service.yml' }
6+
- { resource: '../../../../config/level/architecture/doctrine-repository-as-service.yaml' }

tests/Rector/Architecture/Factory/NewObjectToFactoryCreateRector/NewObjectToFactoryCreateRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public function test(): void
1313

1414
protected function provideConfig(): string
1515
{
16-
return __DIR__ . '/config.yml';
16+
return __DIR__ . '/config.yaml';
1717
}
1818
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
22
Rector\Rector\Architecture\Factory\NewObjectToFactoryCreateRector:
33
Rector\Tests\Rector\Architecture\Factory\NewObjectToFactoryCreateRector\Source\MyClass:
4-
class: Rector\Tests\Rector\Architecture\Factory\NewObjectToFactoryCreateRector\Source\MyClassFactory
5-
method: create
4+
class: 'Rector\Tests\Rector\Architecture\Factory\NewObjectToFactoryCreateRector\Source\MyClassFactory'
5+
method: 'create'

tests/Rector/MethodBody/ReturnThisRemoveRector/ReturnThisRemoveRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public function test(): void
1717

1818
protected function provideConfig(): string
1919
{
20-
return __DIR__ . '/config.yml';
20+
return __DIR__ . '/config.yaml';
2121
}
2222
}

tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/MultipleClassFileToPsr4ClassesRectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ public function testSkip(): void
7474

7575
protected function provideConfig(): string
7676
{
77-
return __DIR__ . '/config.yml';
77+
return __DIR__ . '/config.yaml';
7878
}
7979
}

tests/Rector/RectorOrder/RectorOrderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public function test(): void
1616

1717
protected function provideConfig(): string
1818
{
19-
return __DIR__ . '/config.yml';
19+
return __DIR__ . '/config.yaml';
2020
}
2121
}
File renamed without changes.

0 commit comments

Comments
 (0)