forked from inviqa/harness-spryker
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from teufelaudio/task/WEBDEV-9176-migrate-spryk…
…er-harness DRAFT: WEBDEV-9176: Migrate Spryker harness
- Loading branch information
Showing
63 changed files
with
51,055 additions
and
241 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 @@ | ||
.idea |
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,10 @@ | ||
buggregator: | ||
image: {{ @('services.buggregator.image') }} | ||
networks: | ||
- private | ||
- shared | ||
labels: | ||
- traefik.backend={{ @('services.buggregator.host') }}-{{ @('workspace.name') }} | ||
- traefik.frontend.rule=Host:{{ @('services.buggregator.external_host') }} | ||
- traefik.docker.network=my127ws | ||
- traefik.port={{ @('services.buggregator.api_port') }} |
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,6 @@ | ||
playwright: | ||
image: mcr.microsoft.com/playwright:v1.39.0-jammy | ||
volumes: | ||
- .:/app | ||
networks: | ||
- private |
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,12 @@ | ||
{% set command = @('services.redis.options') | ||
| filter(v => v is not empty) | ||
| map((value, var) => '--' ~ var ~ ' ' ~ value|join(' --' ~ var ~ ' ')) | ||
| reduce((carry, v) => carry|merge([v]), []) %} | ||
redis: | ||
image: {{ @('services.redis.image') }} | ||
command: {{ to_nice_yaml(command, 2, 6) }} | ||
# evict any least recently used key even if they don't have a TTL | ||
command: redis-server --maxmemory {{ @('redis.max_memory') }} --maxmemory-policy allkeys-lru --save 3600 1 --save 300 100 --save 60 10000 | ||
labels: | ||
# deprecated, a later workspace release will disable by default | ||
- traefik.enable=false | ||
networks: | ||
- private | ||
{% if @('app.build') != 'static' and @('docker.port_forward.enabled') %} | ||
ports: | ||
- "127.0.0.1:0:6379" | ||
{% endif %} |
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,11 +1,97 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#1 \\$array of function array_filter expects array, string given\\.$#" | ||
message: "#^Unreachable statement \\- code above always terminates\\.$#" | ||
count: 1 | ||
path: src/Pyz/Yves/ProductSetWidget/Widget/ProductSetIdsWidget.php | ||
path: src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeWriterStep.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$default of method Symfony\\\\Component\\\\HttpFoundation\\\\InputBag\\:\\:get\\(\\) expects bool\\|float\\|int\\|string\\|null, array given\\.$#" | ||
message: "#^Method Pyz\\\\Zed\\\\ExampleStateMachine\\\\ExampleStateMachineDependencyProvider\\:\\:provideBusinessLayerDependencies\\(\\) should return Spryker\\\\Zed\\\\Kernel\\\\Container but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Pyz/Yves/ProductSetWidget/Widget/ProductSetIdsWidget.php | ||
path: src/Pyz/Zed/ExampleStateMachine/ExampleStateMachineDependencyProvider.php | ||
|
||
- | ||
message: "#^Method Pyz\\\\Zed\\\\ExampleStateMachine\\\\ExampleStateMachineDependencyProvider\\:\\:provideCommunicationLayerDependencies\\(\\) should return Spryker\\\\Zed\\\\Kernel\\\\Container but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Pyz/Zed/ExampleStateMachine/ExampleStateMachineDependencyProvider.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Client\\\\ProductAssetStorage\\\\Expander\\\\AssetExpander\\\\BundleProductAssetGalleryExpander\\:\\:findContentImageFromAssetsByIdContent\\(\\) should return Generated\\\\Shared\\\\Transfer\\\\ProductAssetViewTransfer but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Client/ProductAssetStorage/Expander/AssetExpander/BundleProductAssetGalleryExpander.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Client\\\\ProductAssetStorage\\\\Expander\\\\AssetExpander\\\\SimpleProductAssetGalleryExpander\\:\\:findContentImageFromAssetsByIdContent\\(\\) should return Generated\\\\Shared\\\\Transfer\\\\ProductAssetViewTransfer but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Client/ProductAssetStorage/Expander/AssetExpander/SimpleProductAssetGalleryExpander.php | ||
|
||
- | ||
message: "#^Anonymous function never returns null so it can be removed from the return typehint\\.$#" | ||
count: 1 | ||
path: src/Teufel/Yves/ContentImage/Twig/ContentImageTwigFunction.php | ||
|
||
- | ||
message: "#^Anonymous function never returns null so it can be removed from the return typehint\\.$#" | ||
count: 1 | ||
path: src/Teufel/Yves/ContentPdf/Twig/ContentPdfTwigFunction.php | ||
|
||
- | ||
message: "#^Anonymous function never returns null so it can be removed from the return typehint\\.$#" | ||
count: 1 | ||
path: src/Teufel/Yves/ContentVideo/Twig/ContentVideoTwigFunction.php | ||
|
||
- | ||
message: "#^Variable \\$bundledProductView in PHPDoc tag @var does not match any variable in the foreach loop\\: \\$magazineReviewView$#" | ||
count: 1 | ||
path: src/Teufel/Yves/MagazineReview/Plugin/MagazineReviewRendererPlugin.php | ||
|
||
- | ||
message: "#^PHPDoc tag @var for variable \\$pyzSlotContentBlock contains unknown class Orm\\\\Zed\\\\CmsBlock\\\\Persistence\\\\PyzSlotContentBlock\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/Cms/Business/Version/Mapper/VersionDataMapper.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\ContentManagementStorage\\\\ContentManagementStorageDependencyProvider\\:\\:provideBusinessLayerDependencies\\(\\) should return Spryker\\\\Zed\\\\Kernel\\\\Container but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/ContentManagementStorage/ContentManagementStorageDependencyProvider.php | ||
|
||
- | ||
message: "#^Unreachable statement \\- code above always terminates\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/ErpDataExport/Business/Exporter/XmlExporter.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\Newsletter\\\\Communication\\\\Console\\\\RegisterConsole\\:\\:execute\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/Newsletter/Communication/Console/RegisterConsole.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\PayInStore\\\\Communication\\\\Plugin\\\\Oms\\\\Command\\\\ExportCommand\\:\\:run\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/PayInStore/Communication/Plugin/Oms/Command/ExportCommand.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\PayInStore\\\\Communication\\\\Plugin\\\\Oms\\\\Command\\\\PrepareForCashRegisterCommand\\:\\:run\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/PayInStore/Communication/Plugin/Oms/Command/PrepareForCashRegisterCommand.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\ProcessBuilder\\\\Plugin\\\\ProcessConfigurationPlugin\\:\\:getProcessName\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/ProcessBuilder/Plugin/ProcessConfigurationPlugin.php | ||
|
||
- | ||
message: "#^Unreachable statement \\- code above always terminates\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/ProcessBuilder/Plugin/ProcessConfigurationPlugin.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\SaferpayPayment\\\\Communication\\\\Plugin\\\\Oms\\\\Commands\\\\AssertPaymentCommand\\:\\:run\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/SaferpayPayment/Communication/Plugin/Oms/Commands/AssertPaymentCommand.php | ||
|
||
- | ||
message: "#^Method Teufel\\\\Zed\\\\SaferpayPayment\\\\Communication\\\\Plugin\\\\Oms\\\\Commands\\\\CapturePaymentCommand\\:\\:run\\(\\) should return array but return statement is missing\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/SaferpayPayment/Communication/Plugin/Oms/Commands/CapturePaymentCommand.php | ||
|
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,23 +1,86 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
- vendor/spryker-sdk/phpstan-spryker/extension.neon | ||
- %currentWorkingDirectory%/phpstan-baseline.neon | ||
- %currentWorkingDirectory%/vendor/jangregor/phpstan-prophecy/extension.neon | ||
|
||
parameters: | ||
level: 6 | ||
paths: | ||
- %currentWorkingDirectory%/src/Teufel | ||
- %currentWorkingDirectory%/config/Shared | ||
fileExtensions: | ||
- php | ||
parallel: | ||
processTimeout: 1000.0 | ||
jobSize: 250 | ||
maximumNumberOfProcesses: 100 | ||
minimumNumberOfJobsPerProcess: 2 | ||
phpVersion: 80100 # PHP 8.1 | ||
excludePaths: | ||
analyse: | ||
- %rootDir%/../../../src/Generated/* | ||
- %rootDir%/../../../src/Orm/* | ||
- %rootDir%/../../../src/Pyz/Zed/DataImport/Business/* | ||
- %currentWorkingDirectory%/src/Teufel/Shared/ErpDataExport/Models/* | ||
- %currentWorkingDirectory%/src/Teufel/Zed/DataExport/Business/CmsBlockXml/CmsBlockXmlExporter.php | ||
- %currentWorkingDirectory%/src/Teufel/*/*Repository.php | ||
- %currentWorkingDirectory%/src/Teufel/*/*QueryContainer.php | ||
- %currentWorkingDirectory%/src/Generated/* | ||
- %currentWorkingDirectory%/src/Orm/* | ||
- %currentWorkingDirectory%/src/Pyz/* | ||
- %currentWorkingDirectory%/src/Teufel/Client/Catalog/Plugin/Elasticsearch/Query/ProductCatalogSearchQueryPlugin.php | ||
|
||
bootstrapFiles: | ||
- %rootDir%/../../../phpstan-bootstrap.php | ||
- %currentWorkingDirectory%/phpstan-bootstrap.php | ||
|
||
ignoreErrors: | ||
- '#Call to an undefined method Propel\\Runtime\\Collection\\Collection::delete\(\)#' | ||
- '#Call to an undefined method .+Criteria::.+\(\).#' | ||
- '#Parameter .* of class .* expects .*, PHPUnit\\Framework\\MockObject\\MockObject given.*#' | ||
- '#Method .* should return .* but returns PHPUnit\\Framework\\MockObject\\MockObject.*#' | ||
- '#Property Pyz\\Tests\\Integration\\.* does not accept Spryker\\Zed\\Kernel\\Business\\AbstractFacade.#' | ||
- '#Call to an undefined method Generated\\Zed\\Ide\\AutoCompletion|Spryker\\Shared\\Kernel\\LocatorLocatorInterface::.*#' | ||
- '#Function oci_.+ not found.#' | ||
- '#Constant OCI_.+ not found.#' | ||
- '#Declaration of Teufel\\Zed\\.*::.* should be compatible with Spryker\\Zed\\.*\Base\.*#' | ||
- '#Method Teufel\\.*::.* should return array<.*> but returns array<int,.*>#' | ||
- '#Method Teufel\\.*Factory::.*Client\(\) should return .*Interface but returns mixed#' | ||
- '#Method Teufel\\.*Factory::get.* should return .*Interface but returns mixed#' | ||
- '#Method Teufel\\.*Factory::get.* should return .*> but returns mixed#' | ||
- '#Method Teufel\\.*Config::get.* should return .* but returns mixed#' | ||
- '#Parameter .* Teufel\\.* constructor expects array.*, mixed given.#' | ||
- '#Parameter .* \$callback of function .* expects callable\(mixed\): mixed, Closure.* given.#' | ||
- '#Parameter .* \$separator of function explode expects non-empty-string, string given.#' | ||
- '#Cannot cast mixed to *#' | ||
- '#PHPDoc tag.* with type array.* is not subtype of native type ArrayObject#' | ||
- '#ArrayObject.* does not accept array.#' | ||
- '#ArrayObject.* does not accept .*Transfer.#' | ||
- '#Method Teufel.*QueryPlugin\(\) should return .*QueryInterface but returns Teufel.*QueryPlugin.#' | ||
- '#Method .*getTwigEnvironment\(\) should return Twig\\Environment but returns mixed.#' | ||
- '#Method Teufel\\.*Factory::getStore\(\) should return Spryker\\Shared\\Kernel\\Store but returns mixed.#' | ||
|
||
#see ADR 0017_salutation_type | ||
- | ||
message: "#^Method Teufel\\\\Zed\\\\Customer\\\\Communication\\\\CustomerCommunicationFactory\\:\\:createCustomerFormDataProvider\\(\\) should return Spryker\\\\Zed\\\\Customer\\\\Communication\\\\Form\\\\DataProvider\\\\CustomerFormDataProvider but returns Teufel\\\\Zed\\\\Customer\\\\Communication\\\\Form\\\\DataProvider\\\\CustomerFormDataProvider\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/Customer/Communication/CustomerCommunicationFactory.php | ||
- | ||
message: "#^Method Teufel\\\\Zed\\\\Customer\\\\Communication\\\\CustomerCommunicationFactory\\:\\:createCustomerUpdateFormDataProvider\\(\\) should return Spryker\\\\Zed\\\\Customer\\\\Communication\\\\Form\\\\DataProvider\\\\CustomerUpdateFormDataProvider but returns Teufel\\\\Zed\\\\Customer\\\\Communication\\\\Form\\\\DataProvider\\\\CustomerUpdateFormDataProvider\\.$#" | ||
count: 1 | ||
path: src/Teufel/Zed/Customer/Communication/CustomerCommunicationFactory.php | ||
- | ||
message: "#^Method Teufel\\\\Service\\\\UtilDateTime\\\\UtilDateTimeService\\:\\:formatDateByLocale\\(\\) has parameter \\$date with no type specified#" | ||
count: 1 | ||
path: src/Teufel/Service/UtilDateTime/UtilDateTimeService.php | ||
- | ||
message: "#^Method Teufel\\\\Service\\\\Emarsys\\\\Client\\\\FakeEmarsysClient\\:\\:addToStack\\(\\) has parameter \\$item with no type specified#" | ||
count: 1 | ||
path: src/Teufel/Service/Emarsys/Client/FakeEmarsysClient.php | ||
- | ||
message: '#Variable \$config might not be defined.#' | ||
path: %currentWorkingDirectory%/config/Shared/config_propel.php | ||
|
||
reportUnmatchedIgnoredErrors: false | ||
checkMissingIterableValueType: false | ||
checkGenericClassInNonGenericObjectType: false | ||
|
||
dynamicConstantNames: | ||
- APPLICATION | ||
- APPLICATION_ENV | ||
- APPLICATION_STORE | ||
- APPLICATION_CODE_BUCKET |
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.