Problem/Motivation

FILE: ../d10contrib/web/modules/contrib/image_auto_alt_filter/image_auto_alt_filter.info.yml
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
 5 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------

FILE: ../d10contrib/web/modules/contrib/image_auto_alt_filter/src/Plugin/Filter/ImageAutoAlt.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
 10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is DonatelloZa\RakePlus\RakePlus.
-----------------------------------------------------------------------------------------------------------------------------------

Time: 91ms; Memory: 10MB

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.

CommentFileSizeAuthor
#2 3402088-2.patch1.22 KBshyam_bhatt

Comments

Shyam_Bhatt created an issue. See original summary.

shyam_bhatt’s picture

Assigned: shyam_bhatt » Unassigned
Status: Active » Needs review
StatusFileSize
new1.22 KB

Here 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.

A new sniff added to Coder 8.3.19

shyam_bhatt’s picture

Status: Needs review » Closed (works as designed)

I think the maintainer can use phpcbf and resolve similar issues. Hence, I am closing this issue.