-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(scope): Update composer.json and add ractor-php82
- Add @rector-php82-dry-run to the composer scripts - Add ractor-php82.php configuration file
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright (c) 2021-2025 guanguans<[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
* | ||
* @see https://github.com/guanguans/notify | ||
*/ | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\Php82\Rector\Param\AddSensitiveParameterAttributeRector; | ||
use Rector\ValueObject\PhpVersion; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->importNames(false, false); | ||
$rectorConfig->importShortClasses(false); | ||
$rectorConfig->parallel(240); | ||
// $rectorConfig->disableParallel(); | ||
$rectorConfig->phpstanConfig(__DIR__.'/phpstan.neon'); | ||
$rectorConfig->phpVersion(PhpVersion::PHP_82); | ||
|
||
$rectorConfig->paths([ | ||
__DIR__.'/src/*/Authenticator.php', | ||
__DIR__.'/src/*/*/*Authenticator.php', | ||
]); | ||
|
||
$rectorConfig->skip([ | ||
__DIR__.'/src/Foundation/Support', | ||
__DIR__.'/src/Foundation/Response.php', | ||
]); | ||
|
||
$rectorConfig->ruleWithConfiguration(AddSensitiveParameterAttributeRector::class, [ | ||
AddSensitiveParameterAttributeRector::SENSITIVE_PARAMETERS => [ | ||
'accessToken', | ||
'apiKey', | ||
'botApiKey', | ||
'key', | ||
'password', | ||
'pushKey', | ||
'secret', | ||
'tempKey', | ||
'token', | ||
'webHook', | ||
], | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters