PHPADD 1.3.0

I just uploaded to the PEAR repository the latest version of PHPADD, which is labeled 1.3.0.

From this release I can consider it useful, since it includes the ability of exclude whatever you do not want to scan. In fact, you can exclude from scanning any path, class name or method name.

In Allbus, the company where I work, we have several types of classes that are not so much interesting, like implementations of Factory or View Model patterns.  A Factory creates instances of Services with all the needed collaborator injected, with method names like getVehicleService() – which is self-explanatory. A View Model selects some fields from the Sacred Domain Model and always has just a method, setUp(). Nothing more!

As you can see, in such cases the use of docblocks is tautological. While analyzing what classes need a visit to their docblocks, it is important to have no noise around. Simply leave behind classes that do not introduce logic:

phpadd --exclude-paths application/*/view/model/* ...
phpadd --exclude-classes Factory$ ...
phpadd --exclude-methods ^setUp$ ...

If you have already installed an older version of PHPADD, you can just run pear upgrade-all. Otherwise, install it via the repository.

This entry was posted in PHPADD. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>