- Issue created by @mradcliffe
- Merge request !16Issue #3440317 by mradcliffe: Fixes code quality issues โ (Open) created by mradcliffe
- Status changed to Needs review
8 months ago 6:15pm 11 April 2024 - First commit to issue fork.
- ๐ฎ๐ณIndia mitthukumawat
Fixed some of the coding standard issues occurred when running phpcs with Drupal and DrupalPractice.
/modules/contrib $ phpcs --standard=DrupalPractice --extensions=php,module,inc,install agreement/ FILE: modules/contrib/agreement/agreement.module ------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------ 61 | WARNING | Unused variable $id. ------------------------------------------------------------------------ FILE: modules/contrib/agreement/src/Entity/AgreementForm.php ------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------ 106 | WARNING | Unused variable $role_name. ------------------------------------------------------------------------------------ /modules/contrib $ phpcs --standard=Drupal --extensions=php,module,inc,install agreement/ FILE: modules/contrib/agreement/tests/src/Functional/AgreementCustomUnprivilegedUserTest.php ------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------ 183 | WARNING | [x] '@todo: Log in following password reset link, go somewhere other than' should match the format '@todo Fix problem X here.' ------------------------------------------------------------------------------------------------------------------------------------------------ FILE: modules/contrib/agreement/agreement.install ----------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------- 64 | ERROR | Doc comment short description must start with a capital letter -----------------------------------------------------------------------------
- Status changed to Needs work
7 months ago 1:54pm 17 April 2024 - ๐ฎ๐ณIndia dev16.addweb
silvi.addweb โ made their first commit to this issueโs fork.
- Status changed to Needs review
6 months ago 6:32am 3 June 2024 - ๐ฎ๐ณIndia dev16.addweb
Hi,
I have fixed below phpcs issue, Please review.modules/custom/agreement/ FILE: /home/addweb/Drupal8-vagrant/web/web/contribution/drupal-10-3/web/modules/custom/agreement/agreement.links.task.yml ------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/Drupal8-vagrant/web/web/contribution/drupal-10-3/web/modules/custom/agreement/agreement.links.menu.yml ------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------- 5 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/Drupal8-vagrant/web/web/contribution/drupal-10-3/web/modules/custom/agreement/README.md ---------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES ---------------------------------------------------------------------------------------------------------- 3 | WARNING | Line exceeds 80 characters; contains 348 characters 5 | WARNING | Line exceeds 80 characters; contains 386 characters 10 | WARNING | Line exceeds 80 characters; contains 126 characters 21 | WARNING | Line exceeds 80 characters; contains 145 characters 29 | WARNING | Line exceeds 80 characters; contains 126 characters ---------------------------------------------------------------------------------------------------------- FILE: /home/addweb/Drupal8-vagrant/web/web/contribution/drupal-10-3/web/modules/custom/agreement/migrations/agreement_types.yml ------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------- 39 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- Time: 718ms; Memory: 12MB
- Status changed to Needs work
6 months ago 3:14pm 5 June 2024 - ๐บ๐ธUnited States mradcliffe USA
Thank you for continuing work on this issue.
I would prefer not to change the README.md file from what it is in this issue.
The tests are still failing due to the is merge request so I am putting this back in Needs work.
- First commit to issue fork.
- ๐ฎ๐ณIndia ankitv18
ankitv18 โ changed the visibility of the branch 3440317-fixes-for-remaining to hidden.
- Status changed to Needs review
5 months ago 4:43pm 15 June 2024 - Status changed to Fixed
5 months ago 12:31pm 19 June 2024 - ๐บ๐ธUnited States mradcliffe USA
Thank you for all the effort. Following up with any 11 issues in the next project update bot run in ๐ Automated Drupal 11 compatibility fixes for agreement Needs review .
-
mradcliffe โ
committed 055ff0ec on 3.0.x authored by
ankitv18 โ
Issue #3440317 by ankitv18, mradcliffe, mitthukumawat, silvi.addweb:...
-
mradcliffe โ
committed 055ff0ec on 3.0.x authored by
ankitv18 โ
Automatically closed - issue fixed for 2 weeks with no activity.