- Issue created by @sunil jolapara
- Status changed to Needs review
6 months ago 11:19am 21 September 2024 - šŗšøUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
- šµšPhilippines clarkssquared
Hi
I applied MR !2 but it didn't properly applied in the module and has 2 out of 2 hunks failed--saving rejects to field_display_toggle.module.rej
ā field_display_toggle git:(2.1.x) ā curl https://git.drupalcode.org/project/field_display_toggle/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3087 0 3087 0 0 6348 0 --:--:-- --:--:-- --:--:-- 6417 patching file README.md patching file field_display_toggle.module 2 out of 2 hunks failed--saving rejects to field_display_toggle.module.rej ā field_display_toggle git:(2.1.x) ā .. ā contrib git:(2.1.x) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml field_display_toggle FILE: ...rib/web/modules/contrib/field_display_toggle/field_display_toggle.info.yml -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by | | drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by | | drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by | | drupal.org packaging automatically -------------------------------------------------------------------------------- FILE: ...ntrib/web/modules/contrib/field_display_toggle/field_display_toggle.module -------------------------------------------------------------------------------- FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES -------------------------------------------------------------------------------- 1 | ERROR | [x] Missing file doc comment 4 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Form\FormStateInterface. 17 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements | | hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements | | hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* | | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or | | "* Implements hook_foo_BAR_ID_bar() for block templates." -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 89ms; Memory: 10MB ā contrib git:(2.1.x) ā
- š®š¹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.
- š®š³India kulpratap2002
The latest version of the module (10.x-1.x) has no PHPCS errors; however, the version tagged as 1.0.2 does have errors. When installing the module, it is currently downloading version 1.0.2. For the new release, please merge the module with the latest version.
- š®š¹Italy apaderno Brescia, š®š¹
The issue summary has not yet changed.
Also, what can be changed is always a branch; already created releases cannot be changed, but a new release can be created, from an existing branch.