- Issue created by @sidharth_soman
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 7:01am 4 July 2023 - š®š³India sidharth_soman Bangalore
I have fixed all the phpcs issues except those related to line exceeding character limit. It has been left as such for readability purposes.
Please review the above MR.
- Status changed to Needs work
about 1 year ago 6:17am 21 September 2023 - šµšPhilippines clarkssquared
Hi sidharth_soman,
I applied your MR !7 and I noticed that there are still remaining PHPCS issues being flagged. For your reference, below is the PHPCS issues after the MR applied.
toc_js git:(2.0.x) curl https://git.drupalcode.org/project/toc_js/-/merge_requests/7.diff | git apply -v % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4858 0 4858 0 0 8226 0 --:--:-- --:--:-- --:--:-- 8361 Checking patch src/Plugin/Block/TocJsBlock.php... Checking patch toc_js.install... Checking patch toc_js.module... Applied patch src/Plugin/Block/TocJsBlock.php cleanly. Applied patch toc_js.install cleanly. Applied patch toc_js.module cleanly. ā toc_js git:(2.0.x) ā .. ā contrib git:(master) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml toc_js FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/toc_js/toc_js.module --------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE --------------------------------------------------------------------------------------------- 129 | WARNING | Line exceeds 80 characters; contains 103 characters --------------------------------------------------------------------------------------------- FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/toc_js/README.txt ------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ------------------------------------------------------------------------------------------ 94 | WARNING | Line exceeds 80 characters; contains 122 characters 103 | WARNING | Line exceeds 80 characters; contains 105 characters ------------------------------------------------------------------------------------------ FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/toc_js/modules/toc_js_per_node/toc_js_per_node.module ------------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------ 10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. ------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------ FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/toc_js/src/Plugin/Block/TocJsBlock.php --------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------- 282 | WARNING | Line exceeds 80 characters; contains 103 characters --------------------------------------------------------------------------------------------------------------- Time: 266ms; Memory: 12MB
- Assigned to nitin_lama
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 12:42pm 21 September 2023 - š®š³India pray_12
hi,
Reviewed the MR!7. Still found few phpcbf issue.FILE: /toc_js/toc_js.module ------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------ 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is | | Drupal\Core\Entity\EntityInterface. ------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------ FILE: /toc_js/modules/toc_js_per_node/toc_js_per_node.module ------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------ 10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is | | Drupal\Core\Form\FormStateInterface. ------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------
- šµšPhilippines clarkssquared
Hi
I applied MR !7 after commit #8 and I confirmed that all PHPCS issues are resolved
ā toc_js git:(2.0.x) curl https://git.drupalcode.org/project/toc_js/-/merge_requests/7.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 7590 0 7590 0 0 12141 0 --:--:-- --:--:-- --:--:-- 12261 patching file README.txt patching file 'modules/toc_js_per_node/toc_js_per_node.module' patching file 'src/Plugin/Block/TocJsBlock.php' patching file toc_js.install patching file toc_js.module ā toc_js git:(2.0.x) ā .. ā contrib git:(master) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml toc_js ā contrib git:(master) ā
- Status changed to RTBC
11 months ago 7:39am 5 February 2024 - š®š³India Yashaswi18
Hello, ran the command
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml toc_js/Found that there are no phpcs issues remaining.
- Status changed to Fixed
4 months ago 10:39pm 16 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.