Coder Issue Queue

Callback documentation missing

in
6.x-1.x-dev, Documentation, bug report, normal, active

The Coder Documentation is missing an example on how to define a callback function, and how it works.

Internationalization - incorrect usage of t() !placeholders

in
6.x-1.x-dev, Review/Rules, feature request, normal, active

Hi,
Take the example code:
$string = t('Some text !my_link  foo bar wibble', array('!my_link' => l('Coder module', 'http://drupal.org/project/coder'))),

Internationalization - additional leading / trailing spaces checks

in
6.x-1.x-dev, Review/Rules, feature request, normal, active

Hi,
We have a check in the i18n reviews that ensures there are no leading or trailing spaces in the string provided to t(). We should add the same check to other functions which do translation, including format_plural(), watchdog() and also menu items' titles and descriptions.
Cheers,
Stella

Add new internationalisation check for \' within translatable strings

in
6.x-1.x-dev, Review/Rules, feature request, normal, active

Hi,
Coding standards recommend use of single quotes instead of double quotes. This means you often end up with lines of code like:
$string = t('It doesn\'t match.');

False internationalization positive for extra leading/trailing spaces

in
6.x-1.x-dev, Review/Rules, bug report, normal, patch (code needs review)

Hi,
A false positive is generated for lines like:
'titleUser' => t('Your rating') .': ',
The error given is "The $string argument to t() should not begin or end with a space.".

"Ignore this" rule

in
6.x-1.x-dev, Review/Rules, feature request, normal, active

Occasionally when I'm working on a module, Coder gives me errors that are not accurate. This usually happens with either PHP's string functions (which, in many cases, are faster than the drupal_ versions) or when dynamically building SQL queries (and a safe string is inserted into a query using %sinstead of '%s').

Setting file suffixes as per review

in
6.x-1.0, Review/Rules, feature request, normal, active

Hi,
Does Coder have functionality to review translations in .po-files? The Swedish translation team discussed this (in Swedish) and we are looking for a module to use and Coder might be that project as it already has the UI already written.

Improve Usability of the Coder selection form

in
6.x-1.x-dev, User interface, task, normal, patch (code needs review)

I think that hiding the selection form in the fieldset can be confusing to users. Does this patch improve the usability of the coder selection form?

5.x-6.x test catches false positive for use of hook_info()

in
6.x-1.x-dev, Review/Rules, bug report, normal, patch (code needs review)

This was generated by running the 5.x-6.x upgrade review on imagefield.module
#
Line 183: hook no longer exists, use hook_form_alter() to swap your own validation handler (Drupal Docs)
$db_info = content_database_info($field);
#
severity: criticalLine 231: hook no longer exists, use hook_form_alter() to swap your own validation handler (Drupal Docs)

Do not call theme() in hook_menu()

in
5.x-2.x-dev, Code, feature request, normal, active

In Drupal 5 and before, nobody should call a theme() function in a hook_menu(), because it would initialize the theme system too early and prevent dynamic modification of the theme (for example in the block administration interface).

CVS Commits

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-6--2
    cvscomment: 
    <a href="http://drupal.org/node/314268">#314268</a> - fix initializing the new quote arrays
    cvscid: 
    143272

    commit #143272 by douggreen on DRUPAL-6--2 - #314268 - fix initializing the new quote arrays

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-6--2
    cvscomment: 
    fix the callback with the new args from <a href="http://drupal.org/node/314268">#314268</a>
    cvscid: 
    143242

    commit #143242 by douggreen on DRUPAL-6--2 - fix the callback with the new args from #314268

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-6--2
    cvscomment: 
    <a href="http://drupal.org/node/314268">#314268</a> - change parsing of quotes to store multiple values per one line, this is the API change that required the 6.x-2.x version
    cvscid: 
    143099

    commit #143099 by douggreen on DRUPAL-6--2 - #314268 - change parsing of quotes to store multiple values per one line, this is the API change that required the 6.x-2.x version

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-6--1
    cvscomment: 
    <a href="http://drupal.org/node/111471">#111471</a> by stella - additional checks for i18n spaces
    cvscid: 
    143096

    commit #143096 by douggreen on DRUPAL-6--1 - #111471 by stella - additional checks for i18n spaces

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-6--1
    cvscomment: 
    improve the sql_var check to work on all quoted strings, not just db_querys
    cvscid: 
    143038

    commit #143038 by douggreen on DRUPAL-6--1 - improve the sql_var check to work on all quoted strings, not just db_querys