Closed (fixed)
Project:
Coder
Version:
8.x-2.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2016 at 11:44 UTC
Updated:
2 Oct 2016 at 09:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pfrenssenCan you check if it works if you have it on a separate line?
These keywords that are preceded with an @ are PHPDoc tags. They are used to generate the API documentation. If they are used inline in a list they are ignored. They need to start on a new line, as per the PHPDoc documentation (emphasis mine):
Comment #3
pfrenssenAh no I am mistaken, our own coding standards allow this to be inline, here is the relevant section from the API documentation and comment standards:
Comment #4
dawehnerTried to start writing a test for that + a fix. This isn't done yet.
Comment #5
klausiInstead of patches we now use pull requests against https://github.com/klausi/coder , please file one there and link it here.
Comment #6
Everett Zufelt commented@dawehner ,, perhaps the test at LineLengthUnitTest.inc should include a nested list as well? I believe your code will also cover this case.
Comment #7
dawehnerGood idea. I'm actually wondering whether we should change the behaviour to simply check whether the @ is the first character before any alphanumeric one. This could cover a good bunch of usecases. Ideas?
Comment #8
Everett Zufelt commentedI'm typically more in favor of testing for specific cases than for blanket cases. That being said, I'm brand new to the Coder issue queue, and don't know what is the norm.
Here are some scenarios that your suggestion would pass as valid:
Comment #10
klausiCommitted a fix, thanks for reporting!