You are here

function _coder_review_ignore in Coder 7.2

Determines whether a rule should be ignored.

Parameters

array $rule: A Rule array that triggered the error.

int $lineno: The line number on which the error was detected.

array $ignores: Any warnings to ignore.

Return value

bool TRUE if the ruleshould be ignored; otherwise, FALSE.

1 call to _coder_review_ignore()
_coder_review_error in coder_review/coder_review.common.inc
Builds an error message based on the rule that failed and other information.

File

coder_review/coder_review.common.inc, line 1145
Common functions used by both the drush and form interfaces.

Code

function _coder_review_ignore(array $rule, $lineno, array $ignores) {
  $name = $rule['#review_name'] . '_' . $rule['#rule_name'];
  return isset($ignores[$lineno][$name]);
}