AdguardTeam / AdguardTeam/AdguardBrowserExtension

Integrate AGLint into the User rules editor

Đang mở
#2,796 0 bình luận 3 reaction 1 người được giao Được @totadavid95 nhận Xem trên GitHub
Feature Request Priority: P4
Ngôn ngữ chính
TypeScript
Star
4.4k
Fork
449
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue Details

I suggest integrating [AGLint](https://github.com/AdguardTeam/AGLint) into the User rules editor. Since the User rules editor is often used during filter maintenance, it can also be considered a lightweight version of the [VSCode extension](https://github.com/AdguardTeam/VscodeAdblockSyntax).

### Proposed solution

The recommended functional requirements are:
- If the linter finds any problems, the problematic part must be underlined in yellow / red (yellow for warnings, and red for errors). The error message must be displayed when hovering over the problematic part.
- The linter configuration must be persistent and editable. For this, I recommend a button at the bottom of the editor, which opens a new window where the linter configuration can be edited in JSON / YAML format. Saving invalid configuration must be prohibited.
- The linter should be made optional. For this, I recommend a simple toggle button on the User rules page, which can be used to turn the linter on/off with one click.
- We should consider a quick fix that adds the disable control comment to a rule with one click. This can be useful if the linter reports false positives.

### Alternative solution

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.