Replies: 5 comments
-
I like the idea, though I'm not entirely convinced by the tag name. I mean Also, I'd personally much prefer the standard's name be after the URL, since occasionally, you'd want to describe an internal coding standard (as opposed to a common one like PSR-2), e.g.
And this makes parsing of that case much easier. |
Beta Was this translation helpful? Give feedback.
-
Thinking about it, I agree the tag I didn't really think of multiple standards occurring in one document but if it were to occur then would it make more sense to have it right after the tag using bar separators? Wouldn't that be easier to parse than having it after the url? In this format the url/comment part could be optional too. eg.
My hope here is in the future this could also be used to automatically set an editors or other programs coding standard. My original idea was to have this tag only once per document but I guess it could also be used as a switch to change standards through a multiple standard doc. |
Beta Was this translation helpful? Give feedback.
-
OK, I like
No. It won't be easier. In fact, if there's both a description AND a name in addition to the URL, it becomes more difficult, since ReflectionDocBlock needs to maintain 3 pieces of information instead of 2. Besides, the same code that is currently used for |
Beta Was this translation helpful? Give feedback.
-
Thanks for your comments and input, I guess the collaboration team need to discuss and vote it now. I'll keep an eye on this and hopefully it will gain momentum. Regards Louis |
Beta Was this translation helpful? Give feedback.
-
Think this shouldn't be part of phpdocumentor. Your coding standards can be checked using other tools. phpdocumentor is not the right tool. We will improve the support for plugins so you can add your own tags and how they are handled. |
Beta Was this translation helpful? Give feedback.
-
Whenever I open up someone elses code I have to work out or find out if a coding standard is being used.
I'm currently adding Code Standard as a text line in my file doc comment, but I think it would be useful if it became an optional tag in the file doc comment, other applications could then pick up this tag to specify the stadard for phpcs, linters etc.
Something like:
Beta Was this translation helpful? Give feedback.
All reactions