/[drupal]/contributions/modules/coder_tough_love/coder_tough_love.module
ViewVC logotype

Diff of /contributions/modules/coder_tough_love/coder_tough_love.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.2, Thu Nov 20 13:51:15 2008 UTC revision 1.1.2.3, Thu Nov 20 14:18:23 2008 UTC
# Line 6  Line 6 
6   * Supplementary Coder module to provide Morbus' style complaints.   * Supplementary Coder module to provide Morbus' style complaints.
7   *   *
8   * @todo get rid of coder_tough_love_remove_known_keys once concat bug fixed.   * @todo get rid of coder_tough_love_remove_known_keys once concat bug fixed.
9     * @todo <a is allowed inside a t() for translating purposes.
10     * @todo <a href="@..."  >  but disallow <a href="http://.... >.
11   */   */
12    
13  /**  /**
# Line 120  function coder_tough_love_reviews() { Line 122  function coder_tough_love_reviews() {
122    
123      // Miscellany      // Miscellany
124      array(      array(
       '#type' => 'regex',  
       '#value' => '\s*else\s+if\s*\(',  
       '#warning' => t('Use "elseif" not "else if".'),  
     ),  
     array(  
125        '#source' => 'quote',        '#source' => 'quote',
126        '#type' => 'regex',        '#type' => 'regex',
127        '#value' => '<(a|img|table)(\s|>)',        '#value' => '<(a|img|table)(\s|>)',
# Line 275  function _coder_tough_love_doxygen_funct Line 272  function _coder_tough_love_doxygen_funct
272    
273  function _coder_tough_love_doxygen_param_types_warning() {  function _coder_tough_love_doxygen_param_types_warning() {
274    return array(    return array(
275      '#warning' => t('@param and @return syntax does not indicate the data type.'),      '#warning' => t('@param and @return syntax should not indicate the data type.'),
276      '#link' => 'http://drupal.org/node/1354',      '#link' => 'http://drupal.org/node/1354',
277    );    );
278  }  }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2