/[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.4, Thu Nov 20 15:06:29 2008 UTC revision 1.1.2.5, Thu Nov 20 15:35:44 2008 UTC
# Line 8  Line 8 
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.   * @todo <a is allowed inside a t() for translating purposes.
10   * @todo <a href="@..."  >  but disallow <a href="http://.... >.   * @todo <a href="@..."  >  but disallow <a href="http://.... >.
  * @todo add status warning when pspell isn't enabled.  
11   */   */
12    
13  /**  /**
# Line 111  function coder_tough_love_reviews() { Line 110  function coder_tough_love_reviews() {
110        '#source' => 'quote',        '#source' => 'quote',
111        '#type' => 'callback',        '#type' => 'callback',
112        '#value' => '_coder_tough_love_sentence_style',        '#value' => '_coder_tough_love_sentence_style',
113        '#warning' => t('Use sentence case, not title case, for end-user strings. (<a href="http://en.wikipedia.org/wiki/Capitalization#Headings_and_publication_titles">Wikipedia</a>)'),        '#warning' => t('Use sentence case, not title case, for end-user strings. (<a href="@url">Wikipedia</a>)', array('@url' => 'http://en.wikipedia.org/wiki/Capitalization#Headings_and_publication_titles')),
114      ),      ),
115      array(      array(
116        '#case-sensitive' => TRUE,        '#case-sensitive' => TRUE,
# Line 136  function coder_tough_love_reviews() { Line 135  function coder_tough_love_reviews() {
135      array(      array(
136        '#type' => 'regex',        '#type' => 'regex',
137        '#value' => '\s+(chop|close|die|dir|diskfreespace|doubleval|fputs|ini_alter|is_(double|integer|long|real|writeable)|join|magic_quotes_runtime|pos|rewind|show_source|sizeof|strchr)\(',        '#value' => '\s+(chop|close|die|dir|diskfreespace|doubleval|fputs|ini_alter|is_(double|integer|long|real|writeable)|join|magic_quotes_runtime|pos|rewind|show_source|sizeof|strchr)\(',
138        '#warning' => t('Use PHP\'s master function, not an alias. (<a href="http://www.php.net/manual/en/aliases.php">List of PHP aliases</a>)'),        '#warning' => t('Use PHP\'s master function, not an alias. (<a href="@url">List of PHP aliases</a>)', array('@url' => 'http://www.php.net/manual/en/aliases.php')),
139      ),      ),
140      array(      array(
141        '#source' => 'all',        '#source' => 'all',
# Line 439  function coder_tough_love_settings() { Line 438  function coder_tough_love_settings() {
438  function _coder_tough_love_settings_pspell_personal_default() {  function _coder_tough_love_settings_pspell_personal_default() {
439    return    return
440      'api, asc, autocomplete, baseURL, bio, cck, checkbox, checkboxes, CiviCRM, colspan, '.      'api, asc, autocomplete, baseURL, bio, cck, checkbox, checkboxes, CiviCRM, colspan, '.
441      'desc, devel, Doxygen, Drupal, enctype, Facebook, fieldgroup, fieldset, geocode, ' .      'desc, devel, Doxygen, Drupal, enctype, Facebook, fieldgroup, fieldset, geocode, '.
442      'geocoding, Google, href, HTML, imagefield, irc, javascript, json, metadata, Morbus, ' .      'geocoding, Google, href, HTML, imagefield, irc, javascript, json, metadata, Morbus, '.
443      'mysql, mysqli, ncount, nid, null, pathauto, pgsql, PHP, pid, PO, presave, regex, signup, ' .      'mysql, mysqli, ncount, nid, null, pathauto, pgsql, PHP, pid, PO, presave, pspell, regex, '.
444      'simplenews, tablename, textarea, textfield, tid, timestamp, trellon, uid, Unix, ' .      'signup, simplenews, tablename, textarea, textfield, tid, timestamp, trellon, uid, Unix, '.
445      'URL, URLs, username, varchar, vid, wiki, Wikipedia, XHTML';      'URL, URLs, username, varchar, vid, wiki, Wikipedia, XHTML';
446  }  }
447    

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2