Project

General

Profile

Download (972 Bytes) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
declare(strict_types=1);
3

    
4
use Rector\Config\RectorConfig;
5

    
6
return static function (RectorConfig $rectorConfig): void {
7
    // Recursively check these paths...
8
    $rectorConfig->paths([
9
        __DIR__ . '/src',
10
    ]);
11

    
12
    // for files with these extensions...
13
    $rectorConfig->fileExtensions([
14
        'php',
15
        'inc',
16
    ]);
17

    
18
    // while skipping third-pary code that isn't our concern.
19
    $rectorConfig->skip([
20
        __DIR__ . '/src/usr/local/pfSense/include/vendor/*',
21
    ]);
22

    
23
    /*
24
     * Register Rector rules or rulesets here
25
     *
26
     * See https://github.com/rectorphp/rector#running-rector
27
     *
28
     * Place custom Rectors in tools/rector/src/Rector named
29
     * SomeDescriptiveNameRector.php namespaced as "Tools\Rector\Rector".
30
     * Class should be "final" qualified, extend AbstractRector
31
     * and the same name as the filename.
32
     *
33
     * See https://github.com/rectorphp/rector/blob/main/docs/create_own_rule.md
34
     */ 
35
};
(11-11/13)