- Issue created by @urvashi_vora
- Status changed to Needs work
11 months ago 11:28am 16 January 2024 - 🇮🇳India ashutosh ahirwal India
Provided patch get applied cleanly but still throwing some error which needs to fix.
Used command with arguments:-
./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/synpricesRemaining issue:-
FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/synprices/synprices.info.yml
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-----------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/synprices/assets/gulpfile.js
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/synprices/src/Plugin/Action/UpdatePricesAction.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
7 | 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/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/synprices/src/Plugin/Action/RevertSaleAction.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
7 | 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/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/synprices/src/Controller/SynpricesController.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
16 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------------Time: 124ms; Memory: 10MB
- First commit to issue fork.
- Assigned to realsp
- Issue was unassigned.
- Status changed to Needs review
11 months ago 5:07pm 16 January 2024 - 🇮🇳India realsp
I've fixed the phpcs issues, Please review the MR.
Thank you. - Status changed to Needs work
11 months ago 10:47am 18 January 2024 - Assigned to realsp
- Issue was unassigned.
- 🇮🇳India realsp
Thanks @Nikolay Shapovalov, I've updated as per your suggestions, Please review the updated MR.
Thank you. - 🇷🇺Russia zniki.ru
Thanks, I left comment.
Looks like IS phpcs report is outdated, can you please renew it for current 8.x-1.x branch? - Status changed to Needs review
11 months ago 8:52am 23 January 2024 - Status changed to RTBC
11 months ago 9:20am 23 January 2024