AdguardTeam / AdguardTeam/AGLint

Adjust priority of linting filters if proprocessor directives conditions are met

Abierto
#271 1 comentario 0 reacciones 1 asignado Reclamado por @maximtop Ver en GitHub
Priority: P4 T: Config Version: AGLint v4.0
Lenguaje dominante
TypeScript
Estrellas
70
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Any filters list has its own installation preference/ideal like that AdGuard filters lists are expected to be installed on AdGuard products and uBO's uAssets filters on uBlock Origin.
However, to partly/silently/fully support installation on a 3rd-party adblocker platform, each filters list can use proprocessor directives condition (`!#if`) that can override `platform`/`syntax` value of pre-existing AGLint config file.

However, current beta (`4.0.0-beta.3`) does not adjust priority of linting filters with any proprocessor directives condition.

For example, the attached screenshot shows that AGLint ignores `!#if (ext_ublock)` and follows `platforms: adg_any`. Therefore, I can see an error.

Screenshot

Image


Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.