deezer / deezer/html-linter

Disable linter via HTML comment

Open
#10 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
51
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Is there a functionality to temporarily disable the linter for a block of HTML code?

I have some unavoidable errors that I'd like to suppress. I render some HTML with a syntax highlighter (ruby rouge), and the indentation is off. What would be useful is this:

```
... pretty HTML ...

... some ugly HTML ...

... more pretty HTML
```

Note: This syntax is taken directly from the [SCSS linter](https://github.com/brigade/scss-lint#disabling-linters-via-source).

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests; start by locating how the linter parses HTML comments and applies the Indentation rule. Check the existing rule-suppression behavior, then test the sample disable/enable markers. Done means the named rule is suppressed only between the markers while other linting continues.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.