Problem/Motivation
FILE: /Users/a./Documents/Internal/Projects/d10contrib/web/modules/contrib/module_filter/module_filter.module
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
----------------------------------------------------------------------------------------------------------------------
Time: 165ms; Memory: 12MB
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml "module_path"
Proposed resolution
Resolve the PHPCS issues.
Comments
Comment #2
shyam_bhattHere I am adding a solution patch to fix the above issue.
After applying the patch, run the below code:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml "module_path"It will resolve all the issues from phpcs.
Comment #3
jonathan1055 commentedThanks Shyam_Bhatt. Yes this is a new sniff added to Coder 8.3.19
Comment #4
smustgrave commentedGoing to handle in another ticket and I find these credit farming ones detrimental to the community. Flagging for Drupal association