On Sat, 23 Feb 2019, RW wrote:

On Fri, 22 Feb 2019 16:37:30 -0600 (CST)
David B Funk wrote:

Is there a rule "score" syntax that allows you to use the score
assigned to an existing rule to calculate the value assigned to
another rule?
...
What I want to do is to create a local rule:

meta L_HTML_IMAGE_ONLY_28_FIX  ( HTML_IMAGE_ONLY_28 && L_O365_USER )
describe L_HTML_IMAGE_ONLY_28_FIX       Fix damage from
HTML_IMAGE_ONLY_28 for local O-365 users score
L_HTML_IMAGE_ONLY_28_FIX ( -1.0 * HTML_IMAGE_ONLY_28 )

IIWY I'd just redefine the HTML_IMAGE_ONLY_XX rules in the form


body __HTML_IMAGE_ONLY_28 eval:html_image_only('2400','2800')
meta HTML_IMAGE_ONLY_28   __HTML_IMAGE_ONLY_28 && !L_O365_USER

That's one way, but given that HTML_IMAGE_ONLY_28 is a core SA rule I'd prefer not to hack at it.

I could totally over-ride it with local redefinitions but then I'd miss out on any updates/improvements to the core rule defs and not know about it.

By just adding my local "repair" rule who's score is derived from that calculation of the core rule def, I don't need to worry about updates damaging my intended functionality. EG: if the system rule is re-scored (up or down) my "repair" will still do the right thing.

--
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to