- Issue created by @sunil jolapara
- šŗšøUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
sunil jolapara ā changed the visibility of the branch 3476322-fix-the-phpcodesniffer-issues to hidden.
- Merge request !2Resolve #3476322 "Fix the phpcodesniffer issues" ā (Open) created by sunil jolapara
- šŗšøUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
- š®š¹Italy apaderno Brescia, š®š¹
The issue summary for PHP_CodeSniffer issues should always show the report given from PHP_CodeSniffer and the arguments passed to
phpcs
.Furthermore, since GitLab CI is now enabled for all the projects, GitLab CI should be used to get PHP_CodeSniffer errors/warnings.
- šµšPhilippines cleavinjosh
Hi @sunil jolapara,
Thank you for providing an MR. I applied MR!2 on 3.0.x, it was not applied smoothly.
ā city_weather_field git:(3.0.x) curl https://git.drupalcode.org/project/city_weather_field/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10664 0 10664 0 0 26254 0 --:--:-- --:--:-- --:--:-- 26266 patching file README.md patching file city_weather_field.info.yml Reversed (or previously applied) patch detected! Assume -R? [n] -R Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file city_weather_field.info.yml.rej patching file city_weather_field.module Hunk #1 FAILED at 50. 1 out of 1 hunk FAILED -- saving rejects to file city_weather_field.module.rej patching file src/Form/WeatherSettingsForm.php patching file src/Plugin/Field/FieldFormatter/WeatherFieldFormatter.php patching file src/Plugin/Field/FieldType/WeatherFieldType.php patching file src/Plugin/Field/FieldWidget/WeatherFieldWidget.php patching file src/WeatherService.php Hunk #2 FAILED at 32. 1 out of 2 hunks FAILED -- saving rejects to file src/WeatherService.php.rej ā city_weather_field git:(3.0.x) ā
I applied it to 8.x-1.x, it was applied smoothly and fixed most of the phpcs issues.
This is the remaining issue after I ranphpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
:ā city_weather_field git:(8.x-1.x) ā curl https://git.drupalcode.org/project/city_weather_field/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10664 0 10664 0 0 26001 0 --:--:-- --:--:-- --:--:-- 26073 patching file README.md patching file city_weather_field.info.yml patching file city_weather_field.module patching file src/Form/WeatherSettingsForm.php patching file src/Plugin/Field/FieldFormatter/WeatherFieldFormatter.php patching file src/Plugin/Field/FieldType/WeatherFieldType.php patching file src/Plugin/Field/FieldWidget/WeatherFieldWidget.php patching file src/WeatherService.php ā city_weather_field git:(8.x-1.x) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml city_weather_field FILE: /Users/interns/Demo-site/drupal_11_test/install-dir/drupal_11_test_site/web/modules/contrib/city_weather_field/src/WeatherService.php ------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------- 70 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------------------------------------------- Time: 163ms; Memory: 10MB ā contrib git:(main) ā
- Merge request !3Created a new merge request to get the list of all the PHP_CodeSniffer errors/warnings to fix ā (Open) created by cleavinjosh
- šµšPhilippines cleavinjosh
cleavinjosh ā changed the visibility of the branch 3476322-phpcs-issues to hidden.
- šµšPhilippines cleavinjosh
Hi,
Please check and advise on MR!2.
Thank you.
- š®š¹Italy apaderno Brescia, š®š¹
The issue summary must still be updated: Neither in the 8.x-1.x branch, nor in the 3.0.x branch the .yml file contains a
project
,datetime
, orversion
line. - Issue was unassigned.
- š®š¹Italy apaderno Brescia, š®š¹
Only a branch is supported. The unsupported branch is no longer changed.
The list of the errors/warnings to fix should be given by GitLab CI. - šµšPhilippines cleavinjosh
Hi,
There might have been some composer dependency resolution issues.
I am not sure how to proceed.
Please check and advise. Thank you.
- Merge request !4Created a new merge request to get the list of all the PHP_CodeSniffer errors/warnings to fix ā (Open) created by apaderno
- šµšPhilippines cleavinjosh
Hi,
Please review, check, and advise on MR!4. Thank you.
- š®š¹Italy apaderno Brescia, š®š¹
avpaderno ā changed the visibility of the branch 3476322-gitlab-ci-reports to hidden.
- š®š¹Italy apaderno Brescia, š®š¹
MR!4 was created just to get the list of the errors/warnings to fix.
- šµšPhilippines cleavinjosh
cleavinjosh ā changed the visibility of the branch 3476322-fix-the-phpcodesniffer-issues to hidden.
- šµšPhilippines cleavinjosh
Hi,
Please review, check, and advise on MR!5. Thank you.