-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from shopwareLabs/add-import-of-other-psh-con…
…figs 1.6
- Loading branch information
Showing
126 changed files
with
13,229 additions
and
2,894 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 |
---|---|---|
|
@@ -11,4 +11,6 @@ vendor | |
bin | ||
|
||
#externals | ||
humbuglog.txt | ||
.box_dump | ||
.php_cs.cache | ||
.phpunit.result.cache |
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,15 +1,96 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
<?php declare(strict_types=1); | ||
$finder = PhpCsFixer\Finder::create() | ||
->ignoreUnreadableDirs() | ||
->exclude([ | ||
__DIR__ . '/tests/Integration/ScriptRuntime/_non_writable' | ||
__DIR__ . '/tests/Integration/ScriptRuntime/_non_writable', | ||
]) | ||
->in(__DIR__ . '/src') | ||
->in(__DIR__ . '/tests') | ||
; | ||
->append([__FILE__]); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules([ | ||
'@Symfony' => true, | ||
|
||
// Fix declare style | ||
'blank_line_after_opening_tag' => false, | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->finder($finder) | ||
; | ||
// override @Symonfy | ||
'phpdoc_align' => false, | ||
'phpdoc_separation' => false, | ||
'yoda_style' => false, | ||
'phpdoc_summary' => false, | ||
'increment_style' => false, | ||
'php_unit_fqcn_annotation' => false, | ||
'single_line_throw' => false, | ||
|
||
'array_syntax' => [ | ||
'syntax' => 'short', | ||
], | ||
'class_definition' => [ | ||
'single_line' => true, | ||
], | ||
'comment_to_phpdoc' => true, | ||
'concat_space' => [ | ||
'spacing' => 'one', | ||
], | ||
'declare_strict_types' => true, | ||
'dir_constant' => true, | ||
'is_null' => true, | ||
'no_null_property_initialization' => true, | ||
'no_superfluous_phpdoc_tags' => true, | ||
'no_useless_return' => true, | ||
'no_useless_else' => true, | ||
'multiline_whitespace_before_semicolons' => true, | ||
'mb_str_functions' => true, | ||
'ordered_class_elements' => false, | ||
'ordered_imports' => [ | ||
'imports_order' => [ | ||
'class', | ||
'function', | ||
'const', | ||
], | ||
], | ||
'native_function_invocation' => [ | ||
'exclude' => [ | ||
'call_user_func_array', | ||
], | ||
], | ||
'global_namespace_import' => [ | ||
'import_classes' => true, | ||
'import_constants' => false, | ||
'import_functions' => true, | ||
], | ||
'php_unit_ordered_covers' => true, | ||
'php_unit_namespaced' => true, | ||
'php_unit_construct' => true, | ||
'phpdoc_add_missing_param_annotation' => [ | ||
'only_untyped' => true, | ||
], | ||
'phpdoc_order' => true, | ||
'phpdoc_var_annotation_correct_order' => true, | ||
'strict_comparison' => true, | ||
'strict_param' => true, | ||
'general_phpdoc_annotation_remove' => [ | ||
'annotations' => ['inheritdoc'], | ||
], | ||
'class_attributes_separation' => [ | ||
'elements' => [ | ||
'method', | ||
'property', | ||
], | ||
], | ||
'void_return' => true, | ||
'php_unit_test_case_static_method_calls' => [ | ||
'call_type' => 'self', | ||
], | ||
'yoda_style' => [ | ||
'equal' => false, | ||
'identical' => false, | ||
'less_and_greater' => false, | ||
], | ||
'nullable_type_declaration_for_default_null_value' => true, | ||
]) | ||
->setRiskyAllowed(true) | ||
->setUsingCache(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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,7 @@ | |
|_| | ||
]]></header> | ||
<import path="tests"/> | ||
<import path="**/*"/> | ||
<path>actions</path> | ||
</psh> |
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,22 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# DESCRIPTION: Builds phar packages | ||
|
||
I: rm -R build/php56 | ||
mkdir build/php56 | ||
|
||
cp psh build/php56 | ||
cp composer.json build/php56 | ||
cp box.json build/php56 | ||
cp box.phar build/php56 | ||
cp -R vendor build/php56 | ||
cp -R resource build/php56 | ||
bin/php-version-transpiler src/ build/php56/src | ||
|
||
cd build/php56 && php box.phar build | ||
mv build/php56/psh.phar build/psh56.phar | ||
chmod +x build/psh56.phar | ||
|
||
php box.phar build | ||
I: rm build/*.phar | ||
php bin/box compile --debug | ||
mv psh.phar build/psh.phar | ||
chmod +x build/psh.phar | ||
rm -R build/php56 | ||
rm -R .box_dump |
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,8 @@ | ||
#!/usr/bin/env bash | ||
# DESCRIPTION: Execute full ci suite | ||
|
||
bin/psalm | ||
bin/php-cs-fixer fix | ||
INCLUDE: unit.sh | ||
|
||
phpdbg -qrr bin/infection --min-msi=80 |
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,4 +1,9 @@ | ||
#!/usr/bin/env bash | ||
# DESCRIPTION: Remove build artifacts | ||
# <PSH_EXECUTE_THROUGH_CMD> | ||
set -euo pipefail | ||
|
||
I: rm -R build/* | ||
rm -Rf build/* | ||
rm -Rf vendor-bin/*/vendor | ||
rm -Rf bin | ||
rm -Rf 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# DESCRIPTION: Execute unit tests | ||
|
||
D: bin/php-cs-fixer fix | ||
phpdbg -qrr bin/phpunit --coverage-clover=./build/coverage.xml --coverage-html=./build/html-coverage | ||
|
||
WAIT: | ||
|
||
./humbug.phar --no-interaction |
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.