Coder Comments Review

stella - September 30, 2008 - 08:53
Project:Google Analytics
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

Hi,

I found a couple of small commenting standards issue when running coder on the Google Analytics module. The attached patch fixes these. Though the patch was made against the DRUPAL-6--1 branch, it should also apply cleanly to the DRUPAL-6--2 branch too.

Also, as a side note, you should consider updating your simple tests to work with the newer SimpleTest API, for example, your tests should extend DrupalWebTestCase rather than DrupalTestCase. See the SimpleTest module page for links to the updated docs.

Cheers,
Stella

AttachmentSize
google_analytics_comments.patch1.27 KB

#1

stella - September 30, 2008 - 13:43

Re-rolled the patch with some formatting corrected. Also removed the @file comment block for the test file from my last patch since according to current standards at http://groups.drupal.org/node/7731 no @file comments should be used for test files, though this may change in the future.

AttachmentSize
google_analytics_comments.patch652 bytes

#2

hass - September 30, 2008 - 22:21

Do you know how to update simpletest? Is it only the above name change? If not - are you able to upgrade?

#3

stella - September 30, 2008 - 22:38

No, I'm afraid I don't really. I'm pretty sure that get_info() was renamed to getInfo(), but I don't know what the other changes were. The changes came about because the new version doesn't use the external simpletest library. The google analytics code only uses a small number of simpletest functions so you could check the api functions listed at http://drupal.org/node/30023 and see if any have changed. Sorry I can't give you any more info.

Cheers,
Stella

#4

hass - October 1, 2008 - 06:52
Status:patch (code needs review)» fixed

We need to find someone who can update the simpletest stuff... :-)

#5

stella - October 8, 2008 - 22:44
Status:fixed» patch (code needs review)

Commenting standards for test files have changed (http://groups.drupal.org/node/7731), so here's a patch that adds in the @file block to the test file that I had in my original patch.

Cheers,
Stella

AttachmentSize
googleanalytics_comment_2.patch674 bytes

#6

catch - October 9, 2008 - 10:24
Status:patch (code needs review)» patch (reviewed & tested by the community)

Trivial patch, RTBC.

#7

hass - October 9, 2008 - 18:18
Status:patch (reviewed & tested by the community)» fixed

#8

Anonymous (not verified) - October 23, 2008 - 18:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.