- Issue created by @alyaj2a
- šµšPhilippines clarkssquared
Hi alyaj2a,
I applied your MR !3 and I can still see some PHPCS issues though these issues can be resolved via PHPCBF
ā taxonomy_parents_index git:(1.0.x) curl https://git.drupalcode.org/project/taxonomy_parents_index/-/merge_requests/3.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 6570 0 6570 0 0 13248 0 --:--:-- --:--:-- --:--:-- 13463 patching file README.md patching file 'src/Form/IndexTaxonomyParents.php' patching file 'src/Plugin/views/relationship/TaxonomyIndexReverseToParents.php' patching file taxonomy_parents_index.install patching file taxonomy_parents_index.module ā taxonomy_parents_index git:(1.0.x) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml taxonomy_parents_index FILE: ...modules/contrib/taxonomy_parents_index/src/TaxonomyParentsIndexManager.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 51 | ERROR | [x] Multi-line function declarations must have a trailing comma | | after the last parameter -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ents_index/src/Plugin/views/relationship/TaxonomyIndexReverseToParents.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is | | Drupal\views\Plugin\views\relationship\RelationshipPluginBase. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 278ms; Memory: 10MB ā contrib git:(main) ā
- First commit to issue fork.
- š®š³India lavanyatalwar
Hi @clarkssquared, I have resolved the first error you mentioned, but I am not seeing the second error in my terminal. Could you please let me know the command you used to reproduce this error?
- Status changed to Needs review
about 2 months ago 11:53am 17 February 2025 - First commit to issue fork.
Hey @clarkssquared, I checked for existing coding standard issues and have fixed them.
@lavanyatalwar, I was able to reproduce the issue using:
phpcs --standard=Drupal,DrupalPractice --extensions='php,module,inc,install,test,profile,theme,info,yml'
.
It would be helpful to have this set up as an alias on your local machine.- šµšPhilippines clarkssquared
Hi jaswinsingh,
I tested your commit 107f602c and I can no longer see any PHPCS issues
ā taxonomy_parents_index git:(1.0.x) curl https://git.drupalcode.org/project/taxonomy_parents_index/-/merge_requests/3.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 6520 0 6520 0 0 12596 0 --:--:-- --:--:-- --:--:-- 12809 patching file README.md patching file 'src/Form/IndexTaxonomyParents.php' patching file 'src/TaxonomyParentsIndexManager.php' patching file taxonomy_parents_index.install patching file taxonomy_parents_index.module ā taxonomy_parents_index git:(1.0.x) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml taxonomy_parents_index ā contrib git:(main) ā
RTBC +1