Closed (fixed)
Project:
Coder
Version:
8.x-2.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2014 at 08:21 UTC
Updated:
15 Jan 2015 at 18:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pfrenssenHere's a patch for 7.x-2.x.
Comment #2
klausiShould be fixed in 8.x-2.x first, if it is a problem there. Can you check? And this should come with a test case, see the examples in coder_sniffer/Test.
Comment #3
pfrenssenI just looked up the exact specification in the coding standards, and it is a general rule to have a newline inbetween all different tags, this is not exclusive to @param, @return and @throws:
From Drupal API documentation standards for order of documentation sections:
So we can actually add a generic sniff, and remove the specific sniffs that are currently used for @param and @return.
Comment #4
pfrenssenAdded sniff + test to check for newlines between @tag sections for the 8.x-2.x branch.
Comment #5
klausiLooks almost ready!
Please move the assignment out of the if() to make it more obvious what is going on.
BadUnitTest is for legacy only, please move this to DocCommentSniffUnitTest.
Comment #6
pfrenssenThanks! Some good points, addressed them in this new patch.
Comment #7
klausiCommitted, thanks!