Inline rule apply to other files · Issue #534 · htmlhint/HTMLHint · GitHub
Skip to content

Inline rule apply to other files #534

Open

Description

@maruTA-bis5

Describe the bug
Execute htmlhint cli sometimes happenes false negative when some file uses inline rules.
I saw that HTMLHint.verify(content, ruleset) changes ruleset's value.

To Reproduce
Steps to reproduce the behavior:

  1. Execute npx htmlhint **/*.html
    • Need multiple files. One of file uses inline rules, other files don't use inline rules.

There are reproducer: https://github.com/maruTA-bis5/htmlhint-inline-rules-breaks-cli

Expected behavior
Inline rules should not apply to other files.

Additional context
HTMLHint version: 0.14.1

Activity

  1. added
    bot:staleIssue marked as stale because there was no activity
    on Nov 7, 2020
  2. added
    keep-unstaleThe issue will not be marked as stale by the stale-bot
    and removed
    bot:staleIssue marked as stale because there was no activity
    on Nov 11, 2020
  3. deleted a comment from stale on Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-unstaleThe issue will not be marked as stale by the stale-bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions