Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As per coding standard documentation at 'https://www.drupal.org/coding-standards/docs', @file tag docblock should not be there in the files that contain a namespaced class/interface/trait, whose file name is the class name with a .php extension.
Also correct other coding standards issues and follow Drupal best practices as per the latest (dev) version of Coder.
Pareview review : http://pareview.sh/pareview/httpgitdrupalorgprojectalexagit-8x-1x
Comment | File | Size | Author |
---|---|---|---|
#20 | make_code_compliant-2789983-20.patch | 4.83 KB | hampercm |
Comments
Comment #2
hampercm CreditAttribution: hampercm at Acquia commentedYour patch no longer applies. Can you re-roll please?
Comment #3
hampercm CreditAttribution: hampercm at Acquia commentedComment #4
hampercm CreditAttribution: hampercm at Acquia commentedThis patch makes the module fully compliant with current Drupal coding standards.
Comment #5
hampercm CreditAttribution: hampercm at Acquia commentedThis patch makes the module fully compliant with current Drupal coding standards.
Comment #6
hampercm CreditAttribution: hampercm at Acquia commentedAvoid using "Drupal" in class names declared in contributed modules.
Comment #7
naveenvalechaAdded pareview review link http://pareview.sh/pareview/httpgitdrupalorgprojectalexagit-8x-1x
Comment #8
hampercm CreditAttribution: hampercm at Acquia commentedFollow Drupal best practices, add missing README files.
Comment #9
hampercm CreditAttribution: hampercm at Acquia commentedComment #11
hampercm CreditAttribution: hampercm at Acquia commentedComment #12
naveenvalechaStill needs more love http://pareview.sh/pareview/httpgitdrupalorgprojectalexagit-8x-1x
Comment #13
hampercm CreditAttribution: hampercm as a volunteer and at Acquia commentedThis patch fixes the remaining issues to match standards from the latest dev version of the Coder module (I had been using the latest official release of that module, which resulted in some newer standards changes being missed).
Note there is one line in a README that can't be wrapped at 80 characters, as it contains a long URL.
Comment #14
hampercm CreditAttribution: hampercm as a volunteer and at Acquia commentedComment #15
naveenvalechaUse phpcbf to fix the stuff for you.
hpcbf --standard=Drupal alexa/
Extra spaces at line.
Extra spaces at line.
Comment #16
shruti1803 CreditAttribution: shruti1803 at Iksula commentedComment #17
naveenvalecha@shruti1803
Could you update hte patch with right name ? here the interdiff is the patch
Comment #18
shruti1803 CreditAttribution: shruti1803 at Iksula commentedupdated patch name.
Comment #19
hampercm CreditAttribution: hampercm at Acquia commentedThe patch in #18/#16 seems incomplete, as indicated by the interdiff being so large.
Comment #20
hampercm CreditAttribution: hampercm at Acquia commentedRemoved the two extra spaces
Comment #22
hampercm CreditAttribution: hampercm at Acquia commentedComment #23
naveenvalechaNice Chris!