Submitted By: marius van rijnsoever
Adddate: 2010-06-02 01:30:53
Thanks for all your feedback!
The question then becomes, do you want me to apply the coding standard and
correct docblocks for all the files in the library directory? And how will the
logistics of that work (if the .patch files need to be applied manually for all
files this will generate an enormous workload)
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
There are a couple of easy places to start:
1) Add missing class/method/function docblocks - there are a lot.
2) Ensure there is a reasonable description in all
class/method/function docblocks.
3) Ensure that @params tags have the variable name in place, eg:
@param integer $foo A variable
4) Ensure @return is provided for all functions and methods, even if
it's @return void
5) Ensure @since is provided and accurate for all classes, functions
and methods.
In terms of files, the best place to start is picking a file or
package in the framework. Then move to the /includes/ folders of the
site and administrator applications, then move into the CMS more
generally.
Personally I think patches are a better way to go, placed under the
"Code Style" category in the 1.6 issue tracker. I don't see any
reason why code style can be improved during maintenance phases.
Also, while 1.6 should be the priority, it wouldn't hurt to give 1.5
some love in this area.
Most doc generators give some sort of error reporting. I'm leaning
towards Doxygen nowadays - happy to share my setup file with anyone
that wants it. In terms of keeping track of who is doing what, I'd
say a Google spreadsheet would be simple enough to set up to manage
that.
My 2c.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
If you are cleaning up any of the CMS (components, modules, etc), use
patches and the issue tracker and/or branches in the Joomla SVN repo.
If you are doing anything in the platform (aka framework:
/libraries/joomla), then please fork off (no, I'm not swearing at you)
https://bitbucket.org/joomla/joomla-platform using Mecurial. This will
be a good test bed for the new system. If a few people want to get
behind creating Mecurial docs that would be great to.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
I would be up for helping with this. Just spent yesterday grappling with the JNestedTable class and docs would really have helped (make sure your lft and rgt columns are signed would have been a god send! :-s...)
I've put my sniff for PHP CodeSniffer in a new repo here:
https://bitbucket.org/eddieajau/joomla-api-support
It's not perfect yet but it's a good start.
Slowly tuning it as I go through the framework. There's also my
"trial and error" Doxygen file there for people wanting to play with
that to generate API docs. There are some quirks I've found but maybe
best to start a new thread for that.
I'm committing my work into
https://bitbucket.org/eddieajau/joomla-platform so basically all
people need to do is "follow" that, and if anyone else is working on
anything just let me know and I'll follow your repo (or send me a
"pull request"). Other key people to follow at this time are Louis,
Ian, Sam and Omar (just for your information).
So far I've done (meaning the sniff passes) the /filesystem/ package,
JDatabaseQuery and I'm working on JController, JModel and JModelList.
If I haven't been able to quickly work out what an @param is supposed
to do, I've put in
@param foo $bar TODO Add text
so Eclipse will pick that up and people can backfill as they work
things out more.
I must say I'm really digging Mercurial. It's taking a while to get
out of the very rigid Subversion mindset but I'm enjoying the process
of liberation :)
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
Yeah, that's a bit of a gotcha.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
I saw Arlen had the start of a sniff, but all it was doing was setting
the ordering for the docblock tags. I also couldn't find if you'd
published your anywhere. All I've done with my sniff is take the PEAR
standard (plus a dash of Squiz) and whittle away at it. There's a few
things it doesn't do, like check tab indenting, but it's a reasonable
start for the code standard side of things.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
Regarding sniffs, my apologies, it (joomlacode repo) does have a sniff
for the switch declaration but I can't find any other. The current
version of phpcs seems to do in all in ControlSignatureSniff.php now -
you just put all the formats in an array.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers
I'll sync up with what you've done later this week.
Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers