summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2009-08-14 00:18:30 (GMT)
committer Stella Power2009-08-14 00:18:30 (GMT)
commit91cf1af2e91604df7d1a61a669b63eeda637bc42 (patch)
tree5abcc27dc1cb21844f8c2111cacf0f49884a4627
parent22a7954d8af3ce7558a15d0d729c4393b7ce911b (diff)
fixed #filename reviews
-rw-r--r--includes/coder_comment.inc4
-rw-r--r--includes/coder_i18n.inc6
-rw-r--r--includes/coder_sql.inc2
-rw-r--r--includes/coder_style.inc2
4 files changed, 7 insertions, 7 deletions
diff --git a/includes/coder_comment.inc b/includes/coder_comment.inc
index f3a4800..0f56186 100644
--- a/includes/coder_comment.inc
+++ b/includes/coder_comment.inc
@@ -17,7 +17,7 @@ function coder_comment_reviews() {
'#value' => '$Id',
'#case-sensitive' => TRUE,
'#warning_callback' => '_coder_comment_Id_warning',
- '#filename-not' => array('\.patch'),
+ '#filename-not' => array('patch'),
),
array(
'#type' => 'regex',
@@ -86,7 +86,7 @@ function coder_comment_reviews() {
'#source' => 'comment',
'#value' => '@'.'file',
'#warning_callback' => '_coder_comment_missing_file_block',
- '#filename-not' => array('\.patch'),
+ '#filename-not' => array('patch'),
),
array(
'#type' => 'regex',
diff --git a/includes/coder_i18n.inc b/includes/coder_i18n.inc
index 2eefe3f..c3fa3aa 100644
--- a/includes/coder_i18n.inc
+++ b/includes/coder_i18n.inc
@@ -15,7 +15,7 @@ function coder_i18n_reviews() {
array(
'#type' => 'regex',
'#value' => '[\s\(]l\s*\(\s*["\']',
- '#filename-not' => array('\.install'),
+ '#filename-not' => array('install'),
'#warning_callback' => '_coder_i18n_l_without_t',
),
array(
@@ -33,7 +33,7 @@ function coder_i18n_reviews() {
array(
'#type' => 'regex',
'#value' => '[\s\(]alert\s*\(\s*[\'"]',
- '#filename' => array('\.js'),
+ '#filename' => array('js'),
'#warning' => 'Javascript strings should be passed through Drupal.t().',
),
array(
@@ -85,7 +85,7 @@ function coder_i18n_reviews() {
),
array(
'#type' => 'callback',
- '#filename' => array('\.po'),
+ '#filename' => array('po'),
'#value' => '_coder_translation_callback',
),
);
diff --git a/includes/coder_sql.inc b/includes/coder_sql.inc
index a5aca52..c311aa0 100644
--- a/includes/coder_sql.inc
+++ b/includes/coder_sql.inc
@@ -49,7 +49,7 @@ function coder_sql_reviews() {
),
array(
'#type' => 'regex',
- '#filename' => array('\.install'),
+ '#filename' => array('install'),
'#function' => '_update_[0-9]+$',
'#source' => 'allphp',
'#value' => 'db_query\s*\(\s*[\'"](UPDATE|INSERT|DELETE)\s+',
diff --git a/includes/coder_style.inc b/includes/coder_style.inc
index 381eadf..e0272c2 100644
--- a/includes/coder_style.inc
+++ b/includes/coder_style.inc
@@ -95,7 +95,7 @@ function coder_style_reviews() {
'#value' => '(?-i)(function\s+|\$)(([a-z]+[A-Z]+([a-z]*[A-Z]*)*)|([A-Z]+[a-z]+([A-Z]*[a-z]*)*))',
'#warning' => 'do not use mixed case (camelCase), use lower case and _',
'#class-not' => '.+',
- '#filename-not' => array('\.test'), // Add this line too for patch files, where we don't have have class context.
+ '#filename-not' => array('test'), // Add this line too for patch files, where we don't have have class context.
),
array(
'#type' => 'regex',