-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9ff91d
commit 985a762
Showing
29 changed files
with
397 additions
and
249 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Ignore files for distribution archives. | ||
|
||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.editorconfig export-ignore | ||
tests export-ignore | ||
.circle export-ignore | ||
phpcs.xml export-ignore | ||
phpunit.xml export-ignore | ||
/.circleci export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/tests export-ignore | ||
/phpcs.xml export-ignore | ||
/phpmd.xml export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml export-ignore |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
name-template: '$NEXT_MINOR_VERSION' | ||
tag-template: '$NEXT_MINOR_VERSION' | ||
name-template: '$RESOLVED_VERSION' | ||
tag-template: '$RESOLVED_VERSION' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
version-resolver: | ||
default: minor | ||
template: | | ||
## What's new since $PREVIOUS_TAG | ||
$CHANGES | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION | ||
$CONTRIBUTORS |
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 |
---|---|---|
|
@@ -12,5 +12,7 @@ permissions: | |
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: toshimaru/[email protected] | ||
- name: Assign author | ||
uses: toshimaru/[email protected] |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# To ignore OS temporary files use global .gitignore | ||
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer | ||
|
||
vendor | ||
artifact | ||
composer.lock | ||
git_* | ||
.phpunit.cache | ||
/.build | ||
/.coverage-html | ||
/.phpunit.cache | ||
/cobertura.xml | ||
/composer.lock | ||
/vendor |
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
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,65 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Rector configuration. | ||
* | ||
* Usage: | ||
* ./vendor/bin/rector process . | ||
* | ||
* @see https://github.com/palantirnet/drupal-rector/blob/main/rector.php | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector; | ||
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; | ||
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector; | ||
use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector; | ||
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; | ||
use Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector; | ||
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; | ||
use Rector\Config\RectorConfig; | ||
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector; | ||
use Rector\Set\ValueObject\SetList; | ||
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->paths([ | ||
__DIR__ . '/**', | ||
]); | ||
|
||
$rectorConfig->sets([ | ||
SetList::PHP_80, | ||
SetList::PHP_81, | ||
SetList::CODE_QUALITY, | ||
SetList::CODING_STYLE, | ||
SetList::DEAD_CODE, | ||
SetList::INSTANCEOF, | ||
SetList::TYPE_DECLARATION, | ||
]); | ||
|
||
$rectorConfig->skip([ | ||
// Rules added by Rector's rule sets. | ||
ArraySpreadInsteadOfArrayMergeRector::class, | ||
CountArrayToEmptyArrayComparisonRector::class, | ||
DisallowedEmptyRuleFixerRector::class, | ||
InlineArrayReturnAssignRector::class, | ||
NewlineAfterStatementRector::class, | ||
NewlineBeforeNewAssignSetRector::class, | ||
PostIncDecToPreIncDecRector::class, | ||
RemoveAlwaysTrueIfConditionRector::class, | ||
SimplifyEmptyCheckOnEmptyArrayRector::class, | ||
// Dependencies. | ||
'*/vendor/*', | ||
'*/node_modules/*', | ||
]); | ||
|
||
$rectorConfig->fileExtensions([ | ||
'php', | ||
'inc', | ||
]); | ||
|
||
$rectorConfig->importNames(TRUE, FALSE); | ||
$rectorConfig->importShortClasses(FALSE); | ||
}; |
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
Oops, something went wrong.