Requires drupal coding standards
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | interdiff_24-27.txt | 658 bytes | sourabhjain |
| #27 | 2807841-27.patch | 11.39 KB | sourabhjain |
| #10 | interdiff-2807841-2-10.txt | 4.92 KB | minakshiPh |
| #10 | fix-drupal-coding-std-2807841-10.patch | 5.47 KB | minakshiPh |
| #2 | drupal-coding-std-2807841-2.patch | 8.49 KB | minakshiPh |
Issue fork maxlength-2807841
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
minakshiPh commentedAdded the patch with fix.
Kindly review.
Thanks!
Comment #9
dawehnerThese changes doesn't look like an automated fix using phpcbf, please add a phpcs file + execute phpcbf.
Comment #10
minakshiPh commentedHi @dawehner,
Thanks for reviewing my patch !!!
Added the new patch with modifications as mentioned in #9.
Kindly review.
Thanks!
Comment #11
amit.drupal commentedSome more code cleanup required.
Comment #12
amit.drupal commentedComment #13
amit.drupal commentedComment #14
amit.drupal commentedAdded the new patch i think it's helpful.
Comment #15
amit.drupal commentedComment #16
amit.drupal commentedPlease suggest how to fix coding standards in Javascript file use in drupal modules.
Comment #17
dawehnerPlease use a phpcr configuration file so we can automate those checks. When you fix a rule then, you could add those rules, see the latest commit I made:
http://drupalcode.org/maxlength/commit/?id=64fbed4
Comment #18
larowlanComment #19
kkmitra commentedFixed Drupal coding standards.
Comment #20
akashkumar07 commentedComment #21
Deepthi kumari commentedCould not apply patch #19. Applied new patch fixing all the drupal coding standards.
Please review.
Comment #22
cedeweyApplying the patch failed for me with the latest version of 8.x-1.x
Here are the results,
Comment #23
sourabhjainWorking on this.
Comment #24
sourabhjainResolved the coding standard issue and its successfully applying for 8.x-1.x version. Please review.
Comment #25
cedeweyHi Sourabh,
Thank you for working on this.
Excellent, the patch now applies cleanly for me too.
A few small notes,
Changing this comment to
"Limits the number of characters in textfields and textareas and shows the.
Amount of characters left."
Introduces grammar issues. I think it should be left as is, unless you have another suggestion to minimize the character length per line while maintaining proper grammar and readability.
The rest looks good as far as I can tell, though I'll have another maintainer with more coding experience do a final pass.
Thanks again for working on this.
Comment #26
sourabhjainThanks Cadewey.
I am working on this.
Comment #27
sourabhjainHi Cadewey
I have fixed the first two suggestions provided by you but regarding the 3rd suggestion when I am trying to write the '@param $cache' it is generating some more PHPCS issues
Hook implementations should not duplicate @param documentationSo when I investigated it I have found that in the hook we don't need to define @param. Everything is already defined in the definition.
Could you please review it and let me know if I still need to add @param $cache?
Thanks
Comment #28
cedeweySourabh,
This looks great. Thank you very much for working on this.
I'm marking it Reviewed and Tested by the Community. As mentioned before, a more senior developer will do one more review before committing it to the 8.x-1.x branch.
Comment #29
cedeweyComment #30
hipp2bsquare commentedUnfortunately, 3 of 4 hunks now fail when attempting to apply this to the head of 2.0.x. I had it on my list to check for coding standards prior to the RC2 release, anyways. Will update this ticket with more info soon.
Comment #32
hipp2bsquare commentedClayton, I updated the codebase to reflect coding standards. Please review my merge request.
Comment #33
cedeweyThis looks good on my end. Marking RTBC.
Comment #34
cedewey