coder_comment.inc in Coder 5
Same filename in this branch
Same filename and directory in other branches
This include file implements coder functionality for comments
File
includes/coder_comment.incView source
<?php
/** @file
* This include file implements coder functionality for comments
*/
function coder_comment_reviews() {
$rules = array(
array(
'#type' => 'grep_invert',
'#source' => 'comment',
'#value' => '$Id',
'#case-sensitive' => true,
'#warning' => 'Include the CVS keyword $Id' . '$ in each file',
),
array(
'#type' => 'regex',
'#source' => 'comment',
'#value' => '^\\*',
'#warning' => 'indent secondary line of comment one space ',
'#severity' => 'minor',
),
);
$review = array(
'#title' => t('Drupal Commenting Standards'),
'#link' => 'http://drupal.org/node/318',
'#rules' => $rules,
'#description' => t('every developer should use'),
);
return array(
'comment' => $review,
);
}
Functions
Name | Description |
---|---|
coder_comment_reviews | @file This include file implements coder functionality for comments |