-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0abe416
commit 07c4bc3
Showing
12 changed files
with
164 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Checklist before requesting a review | ||
|
||
- [ ] I have formatted the subject to include ticket number as `[#123] Verb in past tense with dot at the end.` | ||
- [ ] I have added a link to the issue tracker | ||
- [ ] I have provided information in `Changed` section about WHY something was done if this was not a normal implementation | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] I have run new and existing relevant tests locally with my changes, and they passed | ||
- [ ] I have provided screenshots, where applicable | ||
|
||
## Changed | ||
|
||
1. | ||
|
||
## Screenshots |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Draft release notes | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release-drafter: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Draft release notes | ||
uses: release-drafter/release-drafter@v6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Custom PHPMD ruleset." | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
|
||
<rule ref="rulesets/unusedcode.xml"/> | ||
<rule ref="rulesets/codesize.xml"/> | ||
<rule ref="rulesets/cleancode.xml/MissingImport"> | ||
<properties> | ||
<property name="ignore-global" value="true"/> | ||
</properties> | ||
</rule> | ||
</ruleset> |
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,66 @@ | ||
<?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/*', | ||
'*/tests/*', | ||
]); | ||
|
||
$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
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.