If you begin a PHPDoc block with {@inheritdoc} (docs at http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutoria...), it is raised as an error since the sentence does not start with a capital letter or end with punctuation.
I think a sensible solution might be to ignore this problem if the doc block starts with the { character, or perhaps just ignore it if it begins with {@inheritdoc}.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | coder-inherit-1879768.patch | 2.3 KB | larowlan |
| #2 | 1879768-inheritdoc-2.patch | 1.52 KB | kim.pepper |
Comments
Comment #1
klausiComment #2
kim.pepperHere's a patch that borrows from Symfony2's codesniff standards https://github.com/opensky/Symfony2-coding-standard/blob/master/Sniffs/C...
Comment #3
kim.pepperStill working on this...
Comment #4
larowlanThis grabs last couple of issues
Comment #5
kim.pepperThis last patch stops the code standard checks on all other comments, not just ones with {@inheritdoc}
Comment #6
klausiCommitted a fix for this, see http://drupalcode.org/project/coder.git/commit/e2fbc6f