AdguardTeam / FiltersCompiler

A tool that compiles & validates filters
GNU Lesser General Public License v3.0
52 stars 12 forks source link

Add a new @include directive option to remove redundant rules. #217

Closed jellizaveta closed 5 months ago

jellizaveta commented 7 months ago

There are redundant rules in cname lists, such as the tracker list:

||www.1016.lookinews.com^
||1016.lookinews.com^

The first rule can be removed, as the second is more widely applicable, and the lists will become a bit more compact. Suggestion for implementation: add cname lists not to the AG Filters repository, but to the FiltersRegistry with a modifier that will select the more general rule and remove the redundant ones.