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.
Two functions and several test classes in one of my contributed modules were missing docblocks, but there was no warning displayed in the coder advisory review.
Comment | File | Size | Author |
---|---|---|---|
#1 | test-doc-validator.php_.txt | 4.24 KB | totten |
Comments
Comment #1
totten CreditAttribution: totten commentedAs part of the mini-sprint at Capital Camp 2012, I was pointed to this related issue:
http://drupal.org/node/1540094
And felt a bit put-off because there was no way to determine which of the 37 test files needed updates (without reading all of them). The folks I talked with at the sprint didn't have any ideas whether coder was working/supported under D8, so I wrote a throw-away script to identify missing docblocks in test-classes.
In any event, in case its useful, the script is attached.
Comment #2
douggreen CreditAttribution: douggreen commentedI think I can do this with coder, but not with those functions. I'll take a stab at writing this using a coder callback.
Comment #3
douggreen CreditAttribution: douggreen commentedRule added to 7.x-2.x http://drupalcode.org/project/coder.git/commit/d2d9fd7.
Comment #4
douggreen CreditAttribution: douggreen commentedMy first commit wasn't perfect, so if you want to test, please get the 7.x-2.x-dev release. Thanks!
Comment #5
douggreen CreditAttribution: douggreen commented