Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to exclude a block from linting? #36

Open
craiga opened this issue Oct 15, 2020 · 3 comments
Open

Is it possible to exclude a block from linting? #36

craiga opened this issue Oct 15, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@craiga
Copy link

craiga commented Oct 15, 2020

Is your proposal related to a problem?

I have a block of code which is triggering #23.

<span data-{{ triggers-issue}}>Hello, world!</span>

Before that issue is being fixed, I'd like to be able to just exclude that block from linting using something like a "noqa" comment.

Describe the solution you’d like

I'm not sure what would work; perhaps something like the following?

{# curlylintignore #}
  <span data-{{ triggers-issue}}>Hello, world!</span>
{# endcurlylintignore #}

Describe alternatives you’ve considered

I can ignore the entire file, but I'd like to be able to lint the rest of the file.

@craiga craiga added the enhancement New feature or request label Oct 15, 2020
@tomasbackman
Copy link

Similar/same/very related with my new issue: #83

@dfrankow
Copy link

dfrankow commented Aug 6, 2021

FYI my issue is intermingling HTML and Django template language, e.g.,

{% if something %}
<li>
{% endif %}

{# 100 lines of template #}

{% if something %}
</li>
{% endif %}

Yes, I could break this into two templates, but I'm just saying, this is the issue that comes up for me.

@PaulMarcantonio
Copy link

Some how when I corrected the tag things started to flow...

perhaps this was the issue? no sure but before that I had just

I hope others find this helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants