- Issue created by @Ujjval Kumar Jha
- 🇮🇳India Ujjval Kumar Jha
Coding standards fixed in attached patch.
- Status changed to Needs review
over 1 year ago 10:18am 3 August 2023 - Status changed to Needs work
over 1 year ago 10:20am 3 August 2023 - 🇮🇳India akshay.singh Noida
after applying the patch, still there are some left over issues.
PFAI am working on those and will raise a MR with changes.
FILE: trumba/trumba.module -------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES -------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheableMetadata. 31 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces 33 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces 58 | ERROR | [x] Short array syntax must be used to define arrays 62 | WARNING | [x] A comma should follow the last multiline array item. Found: '' -------------------------------------------------------------------------------------------------------------------------------- FILE: trumba/trumba.links.menu.yml ------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------- 6 | ERROR | [x] Expected 1 newline at end of file; 2 found ------------------------------------------------------------------------------- FILE: trumba/trumba.routing.yml ---------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------- 9 | ERROR | [x] Expected 1 newline at end of file; 2 found ---------------------------------------------------------------------------- FILE: trumba/src/Plugin/Block/TrumbaBlockBase.php --------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Block\BlockBase. ---------------------------------------------------------------------------------------------------------------------
- @akshaysingh opened merge request.
- Status changed to Needs review
over 1 year ago 10:32am 3 August 2023 - 🇮🇳India akshay.singh Noida
Please review.
Changes are done and MR has been created.Thanks
- Status changed to Needs work
over 1 year ago 5:37pm 10 August 2023 - 🇵ðŸ‡Philippines roberttabigue
Hi @akshay.singh,
After applying the latest MR !3 to the Trumba module against 2.0.1 on Drupal 9.5.10, not all of the PHPCS errors were resolved.
I ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml trumba/
Please see the attached file.
Moving this now to Needs work for now.
Thank you.
- Status changed to Needs review
over 1 year ago 6:25am 11 August 2023 - 🇮🇳India aayushDrupal
I have created a patch for the remaining errors.
Please review. - Status changed to RTBC
over 1 year ago 7:54am 11 August 2023 - 🇮🇳India Nitinkumar_7
Hi @aayushDrupal ,
i have applied merge request !3
These are the steps I followed:
1. Took clone from git version 2.0.1 in drupal 9.5.10
2. Ran this command:
./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/trumba
3. Applied this MR !3 and again ran phpcs command.
I found no error. Moving it to RTBC.