Skip to content

Ignore HTML comments #482

Open
Open
@minsc78

Description

@minsc78

Preconditions

  1. Have a file test.html like this:
<!-- Comment <http://site.com/path/> -->

Steps to reproduce

  1. Run vendor/bin/phpcs -s --standard=Magento2 test.html

Expected result

  1. Show no errors.

Actual result

  1. Getting this output:
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 1 | ERROR | Avoid using self-closing tag with non-void html element - "<http://site.com/path/>
   |       |  (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag)
------------------------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy