Problem/Motivation
FILE: .../lenovo/druapl7to9/web/modules/contrib/email_attachment-3372375/modules/email_attachment_demo/email_attachment_demo.info.yml
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
14 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
----------------------------------------------------------------------------------------------------------------------------------
FILE: ...me/lenovo/druapl7to9/web/modules/contrib/email_attachment-3372375/modules/email_attachment_demo/email_attachment_demo.module
----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
14 | WARNING | Hook implementations should not duplicate @param documentation
14 | ERROR | Missing parameter comment
----------------------------------------------------------------------------------------------------------------------------------
FILE: /home/lenovo/druapl7to9/web/modules/contrib/email_attachment-3372375/tests/src/Kernel/EmailAttachmentTest.php
-------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
-------------------------------------------------------------------------------------------------------------------
15 | ERROR | Missing member variable doc comment
19 | ERROR | Missing short description in doc comment
23 | ERROR | Doc comment is empty
31 | ERROR | Doc comment is empty
43 | ERROR | Doc comment is empty
55 | ERROR | Doc comment is empty
71 | ERROR | Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
76 | ERROR | String concat is not required here; use a single string instead
77 | ERROR | String concat is not required here; use a single string instead
89 | ERROR | Doc comment is empty
104 | ERROR | Doc comment is empty
112 | ERROR | Doc comment is empty
121 | ERROR | Doc comment is empty
-------------------------------------------------------------------------------------------------------------------
FILE: /home/lenovo/druapl7to9/web/modules/contrib/email_attachment-3372375/email_attachment.module
----------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 3 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------------------------------------------------------------------
16 | WARNING | Hook implementations should not duplicate @param documentation
16 | ERROR | Missing parameter comment
30 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "_convert_to_multipart"
| | but expected "email_attachment__convert_to_multipart"
59 | ERROR | Missing short description in doc comment
63 | ERROR | Parameter comment must start with a capital letter
65 | ERROR | Description for the @return value is missing
67 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "_add_attachment" but
| | expected "email_attachment__add_attachment"
110 | ERROR | Doc comment is empty
113 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "_encode_header_rfc_2184"
| | but expected "email_attachment__encode_header_rfc_2184"
118 | ERROR | join() is a function name alias, use implode() instead
124 | WARNING | Hook implementations should not duplicate @param documentation
124 | ERROR | Missing parameter comment
124 | ERROR | Missing parameter type
125 | WARNING | Hook implementations should not duplicate @param documentation
125 | ERROR | Missing parameter comment
125 | ERROR | Missing parameter type
----------------------------------------------------------------------------------------------------------------------------------
Time: 105ms; Memory: 10MB
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig email_attachment-3372375/
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #1
roshni27 commentedroshni27 created an issue.
I am working on it.
Comment #2
roshni27 commentedComment #3
roshni27 commentedComment #5
roshni27 commentedI have solved some error and there are still remain errors related to phpcs. please review solved errors.
Comment #6
roshni27 commentedRemove empty comment and function name changes according to above mention comment. Please review new PR.
Comment #7
avpadernoComment #8
shiv_sharma commentedSeem there are more fixes need to done as after applying patch still showing phpcs warning to me.

Comment #10
nikolay shapovalov commentedMR 1 update, please make a review.
Comment #12
gogowitsch commentedThanks everyone. I have merged your proposed changes, except for these points: