Drupal Development Environment issueshttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues2023-07-25T15:45:53Zhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/15Change PHPCS coding standard from DrupalPractice to Drupal2023-07-25T15:45:53ZJürgen Haasjuergen.haas@lakedrops.comChange PHPCS coding standard from DrupalPractice to DrupalThis is to be the equivalent to what DrupalCI is doing.This is to be the equivalent to what DrupalCI is doing.Jürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/12Add PhpMetrics2023-02-06T12:24:20ZJürgen Haasjuergen.haas@lakedrops.comAdd PhpMetricsSee https://phpmetrics.orgSee https://phpmetrics.orgJürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/11Fix the PHPCS standard to DrupalPractice2023-02-01T09:34:23ZJürgen Haasjuergen.haas@lakedrops.comFix the PHPCS standard to DrupalPracticeJürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/10Add devel module2022-07-04T08:39:10ZJürgen Haasjuergen.haas@lakedrops.comAdd devel moduleJürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/6Add PhpStan to the test suite2022-06-30T14:48:20ZJürgen Haasjuergen.haas@lakedrops.comAdd PhpStan to the test suiteIt's now also in Drupal Core (https://www.drupal.org/node/3258232) and will be helpful in our dev stack too.It's now also in Drupal Core (https://www.drupal.org/node/3258232) and will be helpful in our dev stack too.Jürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/9docker-compose not found in a live pull2022-05-18T07:47:06ZDaniel Speicherdocker-compose not found in a live pullNew clean setup for espace (wohnen Mobimo) portal. The same happens in an existing setup after updating.
The command `a live pull` results in:
```
In SiteProcess.php line 214:
...New clean setup for espace (wohnen Mobimo) portal. The same happens in an existing setup after updating.
The command `a live pull` results in:
```
In SiteProcess.php line 214:
The command "docker-compose --project-name espace --file docker-compose.yml --project-directory /home/danielspeicher/Projects/mobimo/espace exec -T php drush core-status
--fields=db-name --format=json --uri=espace.docker.localhost:8000 --root=/var/www/html/web/" failed.
Exit Code: 127(Command not found)
Working directory:
Output:
================
Error Output:
================
sh: docker-compose: not found
sh: docker-compose: not found
In SiteProcess.php line 214:
The command "docker-compose --project-name espace --file docker-compose.yml --project-directory /home/danielspeicher/Projects/mobimo/espace exec php drush cr --uri=espace
.docker.localhost:8000 --root=/var/www/html/web/" failed.
Exit Code: 127(Command not found)
Working directory:
> sh: docker-compose: not found
```https://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/8Setup IDE for PHP/Drupal dev and test2022-05-13T15:31:48ZJürgen Haasjuergen.haas@lakedrops.comSetup IDE for PHP/Drupal dev and testUpdate the following files:
# inspectionProfiles/Project_Default.xml
in component/profile
```
<inspection_tool class="MessDetectorValidationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool ...Update the following files:
# inspectionProfiles/Project_Default.xml
in component/profile
```
<inspection_tool class="MessDetectorValidationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="PhpCSValidationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="CODING_STANDARD" value="Drupal" />
<option name="EXTENSIONS" value="php,js,css,inc" />
</inspection_tool>
```
# php.xml
in project
```
<component name="MessDetector">
<phpmd_settings>
<MessDetectorConfiguration tool_path="$PROJECT_DIR$/vendor/bin/phpmd" />
</phpmd_settings>
</component>
<component name="PhpCodeSniffer">
<phpcs_settings>
<PhpCSConfiguration standards="Drupal;DrupalPractice;MySource;PEAR;PSR1;PSR12;PSR2;SlevomatCodingStandard;Squiz;VariableAnalysis;Zend" tool_path="$PROJECT_DIR$/vendor/bin/phpcs" />
</phpcs_settings>
</component>
<component name="PhpInterpreters">
<interpreters>
<interpreter id="7a28abff-18ef-49a4-889e-453241ccddd0" name="php" home="docker-compose://DATA" debugger_id="php.debugger.XDebug">
<remote_data INTERPRETER_PATH="php" HELPERS_PATH="/opt/.phpstorm_helpers" INITIALIZED="false" VALID="true" RUN_AS_ROOT_VIA_SUDO="false" DOCKER_ACCOUNT_NAME="Docker" DOCKER_COMPOSE_SERVICE_NAME="php" DOCKER_REMOTE_PROJECT_PATH="/opt/project">
<type_data command="EXEC" />
<dockerComposeConfigurationPaths>
<item value="$PROJECT_DIR$/docker-compose.yml" />
</dockerComposeConfigurationPaths>
<envs />
</remote_data>
</interpreter>
</interpreters>
</component>
<component name="PhpUnit">
<phpunit_settings>
<phpunit_by_interpreter interpreter_id="7a28abff-18ef-49a4-889e-453241ccddd0" configuration_file_path="/var/www/html/tests/phpunit.xml.dist" custom_loader_path="/var/www/html/vendor/autoload.php" phpunit_phar_path="" use_configuration_file="true" />
</phpunit_settings>
</component>
```
# php-test-framework.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpTestFrameworkVersionCache">
<tools_cache>
<tool tool_name="PHPUnit">
<cache>
<versions>
<info id="interpreter-7a28abff-18ef-49a4-889e-453241ccddd0" version="9.5.20" />
</versions>
</cache>
</tool>
</tools_cache>
</component>
</project>
```Jürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/7Fix the PHPCS settings2022-04-11T06:53:41ZJürgen Haasjuergen.haas@lakedrops.comFix the PHPCS settingsDrupalCI is using these:
```
vendor/bin/phpcs --report-full=/var/lib/drupalci/workdir/phpcs/codesniffer_results.txt --report-checkstyle=/var/lib/drupalci/workdir/phpcs/checkstyle.xml --report-diff=/var/lib/drupalci/workdir/phpcs/codesni...DrupalCI is using these:
```
vendor/bin/phpcs --report-full=/var/lib/drupalci/workdir/phpcs/codesniffer_results.txt --report-checkstyle=/var/lib/drupalci/workdir/phpcs/checkstyle.xml --report-diff=/var/lib/drupalci/workdir/phpcs/codesniffer_fixes.patch --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /var/www/html/modules/contrib/eca
```
Especially the standard needs to be changed from `DrupalPractice` to `Drupal`, but also the extensions should be reviewed.Jürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/5Add option to disable deprecation warnings in PhpUnit2022-02-21T11:48:33ZJürgen Haasjuergen.haas@lakedrops.comAdd option to disable deprecation warnings in PhpUnitJürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/4Drupal Devel Environment does not allow for PHP 82022-01-06T08:32:56ZRichard PappDrupal Devel Environment does not allow for PHP 8Choosing PHP 8.0 with drupal.org recommended project template (Drupal 9) leads to an error, when `composer require --dev lakedrops/drupal-development-environment`:
```
lakedrops/drupal-development-environment[v3.1.0, ..., v3.1.8] requir...Choosing PHP 8.0 with drupal.org recommended project template (Drupal 9) leads to an error, when `composer require --dev lakedrops/drupal-development-environment`:
```
lakedrops/drupal-development-environment[v3.1.0, ..., v3.1.8] require sebastian/phpcpd ^4 -> satisfiable by sebastian/phpcpd[4.0.0, 4.1.0].
- sebastian/phpcpd[4.0.0, ..., 4.1.0] require php ^7.1 -> your php version (8.0.7) does not satisfy that requirement.
```Jürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.comhttps://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/3Add execution of tests by group2021-12-14T15:49:33ZDaniel SpeicherAdd execution of tests by groupSince phpunit offers the --group option to execute all tests of a specific group, we should add this to our environment as well. It is not convenient to run all tests or enter the entire path all the time.
Furthermore, we should add the...Since phpunit offers the --group option to execute all tests of a specific group, we should add this to our environment as well. It is not convenient to run all tests or enter the entire path all the time.
Furthermore, we should add the `/modules/contrib` path as well, since we have a lot of projects in development in there.https://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/-/issues/2Add dealerdirect/qa-tools when possible2021-02-19T14:32:37ZJürgen Haasjuergen.haas@lakedrops.comAdd dealerdirect/qa-tools when possibleCurrently `drupal/coder` requires `squizlabs/php_codesniffer` <3.0 and that is a conflict. When that's lifted lets add the QA tools.Currently `drupal/coder` requires `squizlabs/php_codesniffer` <3.0 and that is a conflict. When that's lifted lets add the QA tools.Jürgen Haasjuergen.haas@lakedrops.comJürgen Haasjuergen.haas@lakedrops.com