Skip to content

Add soft hyphen entity to H023 exclusions#1160

Open
kotutuloro wants to merge 1 commit intodjlint:masterfrom
kotutuloro:h023-exclude-shy
Open

Add soft hyphen entity to H023 exclusions#1160
kotutuloro wants to merge 1 commit intodjlint:masterfrom
kotutuloro:h023-exclude-shy

Conversation

@kotutuloro
Copy link

@kotutuloro kotutuloro commented Feb 24, 2025

Pull Request Check List

Resolves: #1159

  • Added tests for changed code.
  • Updated documentation for changed code.

@netlify
Copy link

netlify bot commented Feb 24, 2025

Deploy Preview for djlint canceled.

Name Link
🔨 Latest commit 891a5d6
🔍 Latest deploy log https://app.netlify.com/sites/djlint/deploys/67bcd9530427cf0008dedd73

@monosans monosans requested a review from Copilot July 29, 2025 13:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the soft hyphen entity (­) to the H023 rule exclusions, allowing its usage in HTML code without triggering linting violations.

  • Updates the H023 rule pattern to exclude the shy entity from the "do not use entity references" rule
  • Adds a test case to verify that ­ entities are properly allowed

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/djlint/rules.yaml Updates H023 rule pattern to include shy in the allowed entity references list
tests/test_linter/test_linter.py Adds test case verifying that ­ entity does not trigger H023 violations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] [Linter] H023 includes (sometimes) invisible soft hyphen entity

1 participant