-
Notifications
You must be signed in to change notification settings - Fork 74
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
Showing
488 changed files
with
10,236 additions
and
8,345 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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at https://editorconfig.org | ||
|
||
root = true | ||
|
||
# All files. | ||
[*] | ||
end_of_line = LF | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
indent_size = 4 | ||
indent_style = space | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[composer.{json,lock}] | ||
indent_size = 4 |
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,28 @@ | ||
name: php-cs-fixer | ||
|
||
# This test will run on every pull request, and on every push on main branch | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
php-cs-fixer: | ||
name: Codestyle checks with php-cs-fixer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
coverage: none # disable xdebug, pcov | ||
tools: composer:v2 | ||
extensions: zip | ||
# Uncomment to enable SSH access to Github Actions - https://github.com/marketplace/actions/debugging-with-tmate#getting-started | ||
# - name: Debugging with tmate | ||
# uses: mxschmitt/action-tmate@v2 | ||
# END: SHARED SETUP | ||
|
||
- run: composer install | ||
- run: composer check-style |
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
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,5 +1,6 @@ | ||
# Ignore all hidden files exept these. | ||
.* | ||
!/.php-cs-fixer.dist.php | ||
!/.github | ||
!/.gitignore | ||
!/.gitattributes | ||
|
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 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in([ | ||
__DIR__.'/src', | ||
__DIR__.'/tests', | ||
__DIR__.'/config/drupal-*', | ||
]) | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'linebreak_after_opening_tag' => true, | ||
'ordered_imports' => true, | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'phpdoc_order' => true, | ||
'yoda_style' => false, | ||
'no_superfluous_phpdoc_tags' => false, | ||
'declare_strict_types' => true, | ||
]) | ||
->setFinder($finder) | ||
; |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"ast" | ||
], | ||
"require": { | ||
"rector/rector": "~0.13.8", | ||
"rector/rector": "^1.0", | ||
"webflo/drupal-finder": "^1.2" | ||
}, | ||
"license": "MIT", | ||
|
@@ -30,6 +30,10 @@ | |
{ | ||
"name": "Matt Glaman", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Björn Brala", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
|
@@ -66,14 +70,22 @@ | |
"enable-patching": true | ||
}, | ||
"require-dev": { | ||
"php": "^8.0", | ||
"php": "^8.1", | ||
"cweagans/composer-patches": "^1.7.2", | ||
"friendsofphp/php-cs-fixer": "^3.38", | ||
"phpstan/extension-installer": "^1.1", | ||
"phpstan/phpstan": "^1.0", | ||
"phpstan/phpstan-deprecation-rules": "^1.0", | ||
"phpunit/phpunit": "^9.5", | ||
"rector/rector-src": "dev-main", | ||
"symplify/vendor-patches": "^11.0", | ||
"symfony/yaml": "^5 || ^6" | ||
"phpunit/phpunit": "^10.0", | ||
"symfony/yaml": "^5 || ^6", | ||
"symplify/rule-doc-generator": "^12.0", | ||
"symplify/vendor-patches": "^11.0" | ||
}, | ||
"scripts": { | ||
"docs": "vendor/bin/rule-doc-generator generate src/ --categorize=3", | ||
"test": "vendor/bin/phpunit", | ||
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2G", | ||
"check-style": "vendor/bin/php-cs-fixer check", | ||
"fix-style": "vendor/bin/php-cs-fixer fix" | ||
} | ||
} |
Oops, something went wrong.