Problem/Motivation
Missing coding standards
Steps to reproduce
Run the command:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml autogrow_textarea
Proposed resolution
Fix the following coding standards issues and create an MR with fixes.
FILE: autogrow_textarea/README.md
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 177 characters
21 | WARNING | Line exceeds 80 characters; contains 197 characters
-----------------------------------------------------------------------------
FILE: autogrow_textarea/autogrow_textarea.module
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
--------------------------------------------------------------------------------------------
Comments
Comment #2
sonam_sharma commentedComment #3
sonam_sharma commentedComment #4
sonam_sharma commentedComment #5
clarkssquared commentedHi sonam_sharma
I applied your patch #4 to my local and I confirmed that your patch fixed all the PHPCS errors/issues of the module.
please look at the screenshot I attached for your reference
Thank you
Comment #6
sonam_sharma commentedThank You! @clarkssquared
Comment #7
avpadernoThe issue summary should always describe what the issue is trying to fix and, in the case of coding standards issues, show which command and arguments have been used and which report that command shown. In this way, project maintainers can verify the patch/MR fixes all the warnings/errors.
Comment #8
imustakim commentedIssue summary updated.
Comment #9
aayushmankotia commentedHi,
I conducted a test by implementing patch #4 and executing the following command
../../../vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml ../autogrow_textarea/After thorough examination, I did not found any errors. Therefore, I am changing the status to RTBC. Screenshot is attached for your reference.
Comment #11
akshay.singh commentedaddressing #7
Comment #12
akshay.singh commentedComment #13
akshay.singh commentedthis is not the right info for the file.
these are the generic hooks not specific to piece of code, one shouldn't add this in function doc it must be added as commenting.
this is the right naming convention for a patch.
Comment #15
akshay.singh commentedAll points incorporated.
Please review.
Thanks
Comment #16
avpadernoComment #17
akshay.singh commentedComment #18
avpadernoComment #19
nitin_lamaComment #20
nitin_lamaComment #23
robloach