This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
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
24 changed files
with
173 additions
and
218 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
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,16 @@ | ||
# start workspace. | ||
workspace: | ||
docker-compose run --rm php bash | ||
|
||
# run all linters. | ||
lint: | ||
docker-compose run --rm -T php composer install | ||
docker-compose run --rm -T php composer run csfix | ||
docker-compose run --rm -T php composer run cscheck | ||
docker-compose run --rm -T php composer run phpstan | ||
|
||
# run all tests. | ||
test: | ||
docker-compose up -d gotenberg | ||
docker-compose run --rm -T php composer run phpunit | ||
docker-compose down |
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,21 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Expressive Skeleton coding standard"> | ||
<description>Expressive Skeleton coding standard</description> | ||
|
||
<!-- display progress --> | ||
<arg value="p"/> | ||
<ruleset> | ||
<arg name="basepath" value="."/> | ||
<arg name="extensions" value="php"/> | ||
<arg name="parallel" value="16"/> | ||
<arg name="colors"/> | ||
|
||
<!-- inherit rules from: --> | ||
<rule ref="PSR2"/> | ||
<!-- Ignore warnings, show progress of the run and show sniff names --> | ||
<arg value="nps"/> | ||
|
||
<!-- Paths to check --> | ||
<!-- Directories to be checked --> | ||
<file>src</file> | ||
<file>tests</file> | ||
|
||
<exclude-pattern>tests/dependencies/*</exclude-pattern> | ||
|
||
<!-- Include full Doctrine Coding Standard --> | ||
<rule ref="Doctrine"> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix"/> | ||
<exclude name="Squiz.Commenting.FunctionComment.InvalidNoReturn" /> | ||
<exclude name="Generic.Formatting.MultipleStatementAlignment" /> | ||
</rule> | ||
|
||
<!-- Do not align assignments --> | ||
<rule ref="Generic.Formatting.MultipleStatementAlignment"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<!-- Do not align comments --> | ||
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamName"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamType"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<rule ref="Generic.Files.LineLength"> | ||
<!-- Require no space before colon in return types --> | ||
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"> | ||
<properties> | ||
<property name="lineLimit" value="300"/> | ||
<property name="absoluteLineLimit" value="500"/> | ||
<property name="spacesCountBeforeColon" value="0"/> | ||
</properties> | ||
</rule> | ||
</ruleset> | ||
</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
Oops, something went wrong.