public function _lint()
{
if ($this->node->empty) {
$this->report('WAR_EMPTY_CLASS');
}
$this->process_tokens();
if (!$this->node->dochead) {
$this->report('DOC_NO_DOCHEAD_CLASS');
}
if ($this->config->match_rule('CON_CLASS_NAME', $this->node->name)) {
$this->report('CON_CLASS_NAME', $this->node->name);
}
$len = $this->node->length;
if ($this->config->match_rule('REF_CLASS_LENGTH', $len)) {
$this->report('REF_CLASS_LENGTH', $len);
}
if (!empty($this->locals[T_METHOD]) && in_array($this->node->name, $this->locals[T_METHOD])) {
$this->report('WAR_OLD_STYLE_CONSTRUCT');
}
if (!empty($this->node->nodes)) {
$static = array(0, 0);
foreach ($this->node->nodes as $_) {
if (isset($_->static) && $_->static) {
$static[0]++;
} else {
$static[1]++;
}
}
if ($static[0] > 0 && $static[1] > 0) {
$this->report('REF_STATIC_MIX');
}
}
return $this->reports;
}