- Issue created by @jay jangid
- Merge request !2Issue #3337901: Drupal Coding Standards Issues | phpcs → (Merged) created by jay jangid
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 12:26pm 31 January 2023 - Status changed to Needs work
12 months ago 11:19am 30 January 2024 - 🇮🇳India realsp
Found following phpcs issues in MR #2,
FILE: /home/contribution/drupal/web/modules/contrib/username_validation/username_validation.routing.yml ----------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------- 10 | ERROR | [x] Expected 1 newline at end of file; 2 found ----------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------- FILE: /home/contribution/drupal/web/modules/contrib/username_validation/username_validation.links.menu.yml -------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------- 7 | ERROR | [x] Expected 1 newline at end of file; 0 found -------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------- FILE: /home/contribution/drupal/web/modules/contrib/username_validation/username_validation.module ------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 11 ERRORS AND 4 WARNINGS AFFECTING 15 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] Missing file doc comment 9 | 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." 23 | 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." 30 | ERROR | [x] Use null coalesce operator instead of ternary operator. 55 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "_get_username_from_db" but expected | | "username_validation__get_username_from_db" 69 | ERROR | [ ] Missing parameter comment 70 | ERROR | [ ] Missing parameter comment 72 | ERROR | [ ] Description for the @return value is missing 82 | ERROR | [x] Use null coalesce operator instead of ternary operator. 114 | ERROR | [x] Expected one space after the comma, 0 found 122 | ERROR | [ ] Missing short description in doc comment 153 | ERROR | [x] Expected one space after the comma, 0 found 156 | ERROR | [x] Whitespace found at end of line 158 | WARNING | [ ] Only string literals should be passed to t() where possible 161 | WARNING | [ ] Only string literals should be passed to t() where possible ------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------
- Assigned to realsp
- Issue was unassigned.
- Status changed to Needs review
12 months ago 11:52am 30 January 2024 - 🇮🇳India realsp
I've fixed the remaining phpcs issues in the MR, Please review the MR.
Thank you. - First commit to issue fork.
- Status changed to Needs work
9 months ago 1:00pm 17 April 2024 - 🇦🇺Australia VladimirAus Brisbane, Australia
Few issues to fix.
See pipeline: https://git.drupalcode.org/project/username_validation/-/pipelines/149161 - First commit to issue fork.
- Status changed to Needs review
9 months ago 3:47pm 17 April 2024 - 🇩🇪Germany Grevil
Alright, this issue can be reviewed. There are a few dangerous, but necessary changes here, we need to manually test them first, before merging.
The eslint issue needs to be fixed in a separate issue, they are related to the empty config file (which shouldn't be empty of course), but not related to this issue. I will quickly fix the remaining cspell issues tomorrow and do some quick manually tests for the form_state "getValues()" changes and then we can commit this. Codewise, this can already get reviewed!
I'd say this will be the last commit for 1.x any further work for refactoring, etc. should be done in 2.x. (Note that we also need to cherry-pick this into 2.x once finished).
- Status changed to RTBC
9 months ago 3:06pm 18 April 2024 - Status changed to Fixed
9 months ago 7:49am 19 April 2024 -
Grevil →
committed 8f333408 on 8.x-1.x authored by
Jay Jangid →
Issue #3337901: Drupal Coding Standards Issues | phpcs
-
Grevil →
committed 8f333408 on 8.x-1.x authored by
Jay Jangid →
-
Grevil →
committed b1127729 on 2.x authored by
Jay Jangid →
Issue #3337901: Drupal Coding Standards Issues | phpcs (cherry picked...
-
Grevil →
committed b1127729 on 2.x authored by
Jay Jangid →
Automatically closed - issue fixed for 2 weeks with no activity.