Skip to content

Theme check disable next line does not work for doc tag #945

@aswamy

Description

@aswamy

Describe the bug

  • You can add {% # theme-check-disable-next-line %} to disable the theme check for the next liquid statement in the code
  • If you do this inside of doc tag, it is treated as part of the LiquidDoc description
  • Disabling theme-check at the doc-tag level does not disable checks inside the doc tag

NOTE: You can still disable the theme check for a doc by disabling it for a section of code, just not the "next-line"

{% # theme-check-disable %}
{% doc %}
  @param {product[]} prods - products
{% enddoc %}
{% # theme-check-enable %}

Source

{% # theme-check-disable-next-line UnusedAssign %}
{% doc %}
  @param {product[]} prods - products
{% enddoc %}

Expected behaviour

  • If we can't disable the theme-check from inside the doc tag, we should at least be able to disable the theme check inside the doc tag

Actual behaviour

  • can't disable theme checks for next line when it's inside of doc tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions