AdguardTeam / AdguardTeam/AGLint

Validate domains

未關閉
#255 0 則留言 0 個 reaction 已指派 1 人 已被 @maximtop 認領 在 GitHub 檢視
Priority: P4 T: Linter rule
主要語言
TypeScript
星號
71
分支
4
PR 合併指標
30 天內沒有已合併 PR

描述

In summary, checking domains. This should include (as separate linter rules):
- Validate domains in the "classic" / "traditional" cosmetic rule domain list:
```adblock
example.com,~example.net,subdomain.example.org###selector
```
- Validate domains in [`domain` modifier](https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#non-basic-rules-modifiers-domain) in cosmetic rule modifier list:
```adblock
[$domain=~a.com|~b.*|~/(^\|.+\.)c\.(com\|org)\$/]###selector
```
- Validate domains in [`domain` modifier](https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#domain-modifier) in network rule modifier list:
```adblock
pattern$domain=~a.com|~b.*|~/(^\|.+\.)c\.(com\|org)\$/
```
In the last two cases, we also have to pay attention to regexes. [Wildcards](https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#wildcard-support-for-tld-top-level-domains) must also be handled.

ref: https://github.com/AdguardTeam/AGLint/issues/13#issuecomment-1367877743

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。