function _coder_error_msg in Coder 5
Same name and namespace in other branches
- 5.2 coder.module \_coder_error_msg()
3 calls to _coder_error_msg()
- do_coder_reviews in ./
coder.module - _coder_error in ./
coder.module - _coder_style_callback in includes/
coder_style.inc - Define the rule callbacks
File
- ./
coder.module, line 1081 - Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.
Code
function _coder_error_msg(&$results, $warning, $severity_name, $lineno = -1, $line = '') {
// Note: The use of the $key allows multiple errors on one line.
// This assumes that no line of source has more than 10000 lines of code
// and that we have fewer than 10000 errors.
global $_coder_errno;
$key = ($lineno + 1) * 10000 + $_coder_errno++;
$results[$key] = theme('coder_warning', $warning, $severity_name, $lineno + 1, $line);
$results['#stats'][$severity_name]++;
}