I get a "Use Drupal's format_date(), not PHP's default date()." when I have a function that ends on date, i.e the line:

function vud_comment_admin_settings_validate($form, &$form_state) {

triggers that false positive.

Not sure about the version, but it happens on qa.d.o

Comments

marvil07’s picture

Component: Code » Coder Review
douggreen’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev

I don't see the warning in 7.x.

hass’s picture

I have ~15 false warnings in linkchecker.

#1390038: Use Drupal's format_date(), not PHP's default date().

douggreen’s picture

Status: Active » Closed (duplicate)

@hass also opened #1390038: Use Drupal's format_date(), not PHP's default date()., same report, neither are coder bugs, but are coder tough love. I'm closing this one too. See #1361368: Use Drupal's format_date(), not PHP's default date().. I suggest you get the latest dev version of http://drupal.org/project/coder_tough_love, because this problem is from there. FYI, coder implements a bunch of rules by itself, but it also allows other modules to add their own rules.

marvil07’s picture

Thanks for the information, feedback on #737372-7: Overly aggressive matching on "date" pattern.

hass’s picture

It's not us who need to install an updated version of http://drupal.org/project/coder_tough_love - it's Drupal.org Testbots