Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Allow empty_link rule to detect actually empty links #699

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

pattonwebz
Copy link
Member

This PR makes is so that empty links are flagged appropriately by:

  • Correcting some variables that were being checked
  • Flagging an error if it's empty plain text and there is no img, input or i tags for further checks

Tests were also added to confirm the behaviour of the rule matches the intention against some test data.

Fixes: #697

@pattonwebz pattonwebz changed the title Fix: Allow empty_link rule to detect actually empty links Fixed: Allow empty_link rule to detect actually empty links Jul 1, 2024
Copy link
Member

@SteveJonesDev SteveJonesDev left a comment

Choose a reason for hiding this comment

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

LGTM in my testing. Thanks for adding the Unit Tests.

@pattonwebz pattonwebz merged commit 348842b into develop Jul 1, 2024
16 checks passed
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.

Empty link rule check misses empty links
2 participants