Skip to content

Commit

Permalink
Updated documentation, composer dependencies, fixed php-cs-fixer code…
Browse files Browse the repository at this point in the history
… quality tool.
  • Loading branch information
DKravtsov committed Feb 11, 2023
1 parent 43087c9 commit 224445f
Show file tree
Hide file tree
Showing 32 changed files with 1,476 additions and 1,139 deletions.
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@
"Symplify\\CodingStandard\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/coding-standard/src",
"Symplify\\EasyCodingStandard\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/src",
"ECSPrefix20210928\\Symplify\\RuleDocGenerator\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/rule-doc-generator-contracts/src",
"Rector\\Core\\": "tools/08_rector/vendor/rector/rector/src",
"Rector\\Php74\\": "tools/08_rector/vendor/rector/rector/rules/Php74",
"Rector\\Php80\\": "tools/08_rector/vendor/rector/rector/rules/Php80",
"Rector\\Php81\\": "tools/08_rector/vendor/rector/rector/rules/Php81",
"Rector\\Set\\": "tools/08_rector/vendor/rector/rector/packages/Set"
"Rector\\": "tools/08_rector/vendor/rector/"
}
},
"minimum-stability": "dev",
Expand Down
703 changes: 478 additions & 225 deletions composer.lock

Large diffs are not rendered by default.

Binary file modified docs/images/phpstorm_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/phpstorm_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/phpstorm_11.png
Binary file not shown.
Binary file added docs/images/phpstorm_11_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/phpstorm_11_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/phpstorm_11_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/xdebug_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions docs/phpstorm.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ In order to use Xdebug as debugging tool please follow [Using Xdebug](xdebug.md)
![Path mappings](images/phpstorm_09.png)
![Path mappings](images/phpstorm_10.png)

* Go to `Settings -> Editor -> Inspections` and import profile `Systemsdk` (Inspections.xml) from [docs/phpstorm](phpstorm) and make sure that you have proper path to `phpmd_ruleset.xml`:
* Set other configurations for code quality tools and make sure that you have proper path for the MessDetector ruleset `phpmd_ruleset.xml`:

![Path mappings](images/phpstorm_11.png)
![Path mappings](images/phpstorm_11_1.png)
![Path mappings](images/phpstorm_11_2.png)

* Go to `Settings -> Editor -> Inspections` and import profile `Systemsdk` (Inspections.xml) from [docs/phpstorm](phpstorm):

![Path mappings](images/phpstorm_11_3.png)

* Go to `Settings -> Tools -> External tools` and create ecs tool:

Expand Down
11 changes: 2 additions & 9 deletions docs/phpstorm/Inspections.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
<option name="CODING_STANDARD" value="PSR12" />
<option name="CUSTOM_RULESET_PATH" value=".php-cs-fixer.dist.php" />
<option name="SHOW_SNIFF_NAMES" value="true" />
<option name="EXTENSIONS" value="php,js,css,inc" />
</inspection_tool>
<inspection_tool class="PhpDivisionByZeroInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpDocMissingReturnTagInspection" enabled="true" level="WARNING" enabled_by_default="true">
Expand All @@ -118,18 +117,12 @@
<inspection_tool class="PhpDocMissingThrowsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="SKIP_ON_EMPTY_PHPDOC" value="false" />
</inspection_tool>
<inspection_tool class="PhpDocSignatureInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ALLOW_MISSING_PARAMETERS" value="true" />
</inspection_tool>
<inspection_tool class="PhpDocSignatureInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpMethodOrClassCallIsNotCaseSensitiveInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpMissingDocCommentInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="SKIP_EMPTY_FUNCTION" value="false" />
<option name="SKIP_EMPTY_METHOD" value="false" />
</inspection_tool>
<inspection_tool class="PhpMissingDocCommentInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpMissingParentCallCommonInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="PhpMissingParentCallMagicInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpMissingStrictTypesDeclarationInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpShortOpenTagInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PhpStanGlobal" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="level" value="8" />
<option name="config" value="phpstan.neon.dist" />
Expand Down
7 changes: 7 additions & 0 deletions php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

declare(strict_types=1);

# Temporary solution for PhpStorm quality tools as php-cs-fixer is not supporting php 8.2 currently
putenv('PHP_CS_FIXER_IGNORE_ENV=1');
include __DIR__ . '/vendor/bin/php-cs-fixer';
2 changes: 1 addition & 1 deletion tools/01_phpunit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "",
"require": {},
"require-dev": {
"phpunit/phpunit": "9.5.*",
"phpunit/phpunit": "9.6.*",
"roave/security-advisories": "dev-latest"
},
"config": {
Expand Down
114 changes: 63 additions & 51 deletions tools/01_phpunit/composer.lock

Large diffs are not rendered by default.

Loading

0 comments on commit 224445f

Please sign in to comment.