You are here

function coder_comment_reviews in Coder 5

Same name and namespace in other branches
  1. 5.2 includes/coder_comment.inc \coder_comment_reviews()
  2. 6.2 includes/coder_comment.inc \coder_comment_reviews()
  3. 6 includes/coder_comment.inc \coder_comment_reviews()

@file This include file implements coder functionality for comments

File

includes/coder_comment.inc, line 7
This include file implements coder functionality for comments

Code

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,
  );
}