Skip to content

Commit eec5cab

Browse files
committed
[Skeleton] Added rector setup
1 parent e103d90 commit eec5cab

File tree

6 files changed

+60
-0
lines changed

6 files changed

+60
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Rector PHP
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- '[0-9]+.[0-9]+'
7+
pull_request: ~
8+
jobs:
9+
rector:
10+
name: Run rector
11+
uses: ibexa/gh-workflows/.github/workflows/rector.yml@main
12+
secrets:
13+
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
14+
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
15+
TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}

skeleton/ibexa-ee/composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"ibexa/code-style": "~2.0.0",
2727
"ibexa/doctrine-schema": "~5.0.x-dev",
2828
"ibexa/phpstan": "~5.0.x-dev",
29+
"ibexa/rector": "~5.0.x-dev",
2930
"phpstan/phpstan": "^2.0",
3031
"phpstan/phpstan-phpunit": "^2.0",
3132
"phpstan/phpstan-symfony": "^2.0",

skeleton/ibexa-ee/rector.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
use Ibexa\Contracts\Rector\Factory\IbexaRectorConfigFactory;
10+
11+
return (new IbexaRectorConfigFactory(
12+
[
13+
__DIR__ . '/src',
14+
__DIR__ . '/tests',
15+
]
16+
))->createConfig();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Rector PHP
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- '[0-9]+.[0-9]+'
7+
pull_request: ~
8+
jobs:
9+
rector:
10+
name: Run rector
11+
uses: ibexa/gh-workflows/.github/workflows/rector.yml@main

skeleton/ibexa-oss/composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"ibexa/code-style": "~2.0.0",
2121
"ibexa/doctrine-schema": "~5.0.x-dev",
2222
"ibexa/phpstan": "~5.0.x-dev",
23+
"ibexa/rector": "~5.0.x-dev",
2324
"phpstan/phpstan": "^2.0",
2425
"phpstan/phpstan-phpunit": "^2.0",
2526
"phpstan/phpstan-symfony": "^2.0",

skeleton/ibexa-oss/rector.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
use Ibexa\Contracts\Rector\Factory\IbexaRectorConfigFactory;
10+
11+
return (new IbexaRectorConfigFactory(
12+
[
13+
__DIR__ . '/src',
14+
__DIR__ . '/tests',
15+
]
16+
))->createConfig();

0 commit comments

Comments
 (0)