You are here

function coder_review_get_ignores in Coder 7

Get list of lines to ignore.

1 call to coder_review_get_ignores()
coder_review_page_form in coder_review/coder_review.module
Implements hook_form().

File

coder_review/coder_review.module, line 1956

Code

function coder_review_get_ignores() {
  $ignores = coder_review_parse_ignores(drupal_get_path('module', 'coder_review') . '/core.coder_review_ignores.txt');
  foreach (module_implements('coder_review_ignore') as $module) {
    $function = $module . '_coder_review_ignore';
    $default_info = array(
      'path' => '',
      'line prefix' => '',
    );
    $info = array_merge($default_info, $function());
    $ignores += coder_review_parse_ignores($info['path'] . '/' . $module . '.coder_review_ignores.txt', $info['line prefix']);
  }
  return $ignores;
}