-
-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
044d3a3
commit 046f04a
Showing
9 changed files
with
155 additions
and
87 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,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 |
File renamed without changes.
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 |
---|---|---|
@@ -1,57 +1,62 @@ | ||
{ | ||
"name": "drevops/behat-phpserver", | ||
"type": "library", | ||
"description": "Behat Context to enable PHP server for tests", | ||
"license": "GPL-2.0-or-later", | ||
"keywords": [ | ||
"behat", | ||
"server" | ||
"name": "drevops/behat-phpserver", | ||
"type": "library", | ||
"description": "Behat Context to enable PHP server for tests", | ||
"license": "GPL-2.0-or-later", | ||
"keywords": [ | ||
"behat", | ||
"server" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Alex Skrypnyk", | ||
"email": "alex@drevops.com" | ||
} | ||
], | ||
"homepage": "https://github.com/drevops/behat-phpserver", | ||
"support": { | ||
"issues": "https://github.com/drevops/behat-phpserver/issues", | ||
"source": "https://github.com/drevops/behat-phpserver" | ||
}, | ||
"require": { | ||
"php": ">=8.1", | ||
"behat/behat": "^3.13" | ||
}, | ||
"require-dev": { | ||
"behat/mink-browserkit-driver": "^2.2", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0", | ||
"escapestudios/symfony2-coding-standard": "^3.13", | ||
"friends-of-behat/mink-extension": "^2.7", | ||
"phpmd/phpmd": "^2.15", | ||
"phpstan/phpstan": "^1.10", | ||
"rector/rector": "^1.0.0", | ||
"squizlabs/php_codesniffer": "^3.8", | ||
"symfony/http-client": "^6 || ^7.0" | ||
}, | ||
"replace": { | ||
"integratedexperts/behat-phpserver": "self.version" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"DrevOps\\BehatPhpServer": "src/" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"scripts": { | ||
"lint": [ | ||
"phpcs", | ||
"phpmd --exclude vendor,vendor-bin,node_modules . text phpmd.xml", | ||
"phpstan", | ||
"rector --clear-cache --dry-run" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Alex Skrypnyk", | ||
"email": "alex@drevops.com" | ||
} | ||
"lint-fix": [ | ||
"rector --clear-cache", | ||
"phpcbf" | ||
], | ||
"homepage": "https://github.com/drevops/behat-phpserver", | ||
"support": { | ||
"issues": "https://github.com/drevops/behat-phpserver/issues", | ||
"source": "https://github.com/drevops/behat-phpserver" | ||
}, | ||
"require": { | ||
"php": ">=8.1", | ||
"behat/behat": "^3.13" | ||
}, | ||
"require-dev": { | ||
"behat/mink-browserkit-driver": "^2.2", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0", | ||
"escapestudios/symfony2-coding-standard": "^3.13", | ||
"friends-of-behat/mink-extension": "^2.7", | ||
"phpmd/phpmd": "^2.15", | ||
"phpstan/phpstan": "^1.10", | ||
"squizlabs/php_codesniffer": "^3.8", | ||
"symfony/http-client": "^6 || ^7.0" | ||
}, | ||
"replace": { | ||
"integratedexperts/behat-phpserver": "self.version" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"DrevOps\\BehatPhpServer": "src/" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"scripts": { | ||
"lint": [ | ||
"phpcs", | ||
"phpmd --exclude vendor . text phpmd.xml", | ||
"phpstan" | ||
], | ||
"lint:fix": "phpcbf", | ||
"test": "cd ./tests/behat/ && ../../vendor/bin/behat --colors" | ||
} | ||
"test": "cd ./tests/behat/ && ../../vendor/bin/behat --colors" | ||
} | ||
} |
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
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