0

I use Eclipse PDT and phpDoc.

I would like the warnings of phpDoc to show up in the editor, just like other "validation" tools. This would help the programmer team to create better documentation.

Is there a way to do that ?

Thanks.

0

1 Answer 1

2

There's a useful tool for enforcing coding standards in PHP called PHP CodeSniffer.

It includes prebuilt rules to enforce docblock requirements. I'm sure if the provided rules aren't exactly what you need it would be relative easy to extend your own rules.

There's a prebuilt integration with Eclipse that includes some other tools like phpunit at PhpSrc

I've used these tools to enforce coding standards with good results.

Sign up to request clarification or add additional context in comments.

1 Comment

That's exactly what I ended up doing finally ;). PhpSrc rocks, and I used some of PEAR's coding guidelines for validating PHP docblocks (they have a set of CodeSniffer rules).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.