SA Bugzilla – Bug 3307
Basic lint test fails with reference to nonexistent rule
Last modified: 2004-04-26 13:10:50 UTC
t/basic_lint................warning: score set for non-existent rule HTML_FONT_FACE_ODD Not found: anything = # Failed test 1 in t/SATest.pm at line 493
fixed This one lint rule is a real pain. Extra scores are about as harmless as they get.
The lint rule should help when updating to 3.0.0, it'll help me clean out un- needed score statements for all the rules which changed name from 2.63 to 3.0.0 ;) They are probably harmless, but I'm human and I've made mistakes scoring a rule in the past, I thought I knew the exact name, turns out I was wrong. It will also help those of us like myself and Robert Menschel who put a lot of time into scoring the stock rules higher for a higher threshold. See: http://www.exit0.us/index.php/RM_DefaultScoreChanges It looks like he spent a lot of time doing all that!
Likewise, those of us who do a lot of custom rulework often do have typographical errors. Yes, it's most important to --lint errors in the regex expressions, but a typo in the rule name of a score or description line is also important. Mistype the rule name in a description line, and you don't get a description when the rule is matched. Mistype the rule name in a score line, and you get a default score, not the score you intended (which can be significant, if the intended score was 0.2 or 3.0). I would appreciate a -- lint which warned of these types of errors. Bob Menschel