Skip to content

Linter: Implement html-no-empty-attributes linter rule#460

Merged
marcoroth merged 6 commits intomarcoroth:mainfrom
auslach:linter_rule_empty_attr_values
Aug 28, 2025
Merged

Linter: Implement html-no-empty-attributes linter rule#460
marcoroth merged 6 commits intomarcoroth:mainfrom
auslach:linter_rule_empty_attr_values

Conversation

@auslach
Copy link
Contributor

@auslach auslach commented Aug 28, 2025

This fixes #445.

Leverages AttributeVisitorMixin to check static and dynamic attribute names.

Dynamic values are not checked since we cannot determine the ERB output during linting.

@marcoroth let me know if there are any additional html attributes we should add.

Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

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

Hey @auslach, thanks so much for this pull request!

I left a few comments, but this looks great! Thanks!

@auslach
Copy link
Contributor Author

auslach commented Aug 28, 2025

@marcoroth - addressed your comments! Let me know if there's anything else.

Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

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

Awesome, thank you so much @auslach! 🙏🏼

@marcoroth marcoroth changed the title Linter: check for empty attribute values: html-no-empty-attributes Linter: Implement html-no-empty-attributes linter rule Aug 28, 2025
@marcoroth marcoroth merged commit b6affe3 into marcoroth:main Aug 28, 2025
1 check 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.

Linter Rule: Attributes like id or class must not be empty

2 participants