-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Report and remove overlapping targets #12320
Conversation
|
I've noticed many XML have targets that actually overlap and so unnecessarily duplicate each other. I've extended target checks to test and report this automatically as reducing them might partially help with EFForg#12232.
054d5fa
to
48bd6fc
Compare
Added automated attempt to remove targets that were detected as already covered by others in the same ruleset. As I said in #12322 (comment), I'm not sure if this will always give correct result because sometimes it's the wildcard target that can be avoided, but I think it might be better for the start and can be corrected manually after. |
(feel free to merge the check separately from XML changes if that's easier / makes more sense) |
@@ -1,7 +1,6 @@ | |||
<ruleset name="3min" default_off="Invalid Certificate"> | |||
<target host="3min.de"/> | |||
<target host="*.3min.de"/> | |||
<target host="www.3min.de"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some cases we cold replace the target with a test url.
Reviewing this now. |
Looks great, thanks again! |
I've noticed many XML have targets that actually overlap and so unnecessarily duplicate each other.
I've extended target checks to test and report this automatically as reducing them might partially help with #12232.