Skip to content

Formatter: "Herb disable" comment to disable rules in-line #593

Description

@crmne

Hey Marco,

it would be great to use comments to disable specific rules inline. For example:

  <div
    data-markdown-target="source"
    data-clipboard-target="source"
    class="hidden"
    id="<%= dom_id(message) %>_source"
  ><%= render "messages/content", content: message.content %></div>

This gets rightfully formatted with the render tag in a new line, but doing so breaks the formatting of my app, which uses marked.js to render the message content from that div.

It would be great to be able to add a comment, similarly to rubocop, to disable the formatter for that specific line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions