Skip to content

Conversation

@domingo2000
Copy link
Contributor

@domingo2000 domingo2000 commented Sep 23, 2025

Closes: #527
Advances: #537

This PR adds the rule erb-comment-syntax. It is the same rule implemented in CommentSyntax of ERB Lint.

The rule itself avoid parsing errors in the action_view erb default parsing implementation.

Also the porting of ERB Lint rules to herb rules facilitates the adoption of Herb as a ERB Lint replacement.

@domingo2000 domingo2000 force-pushed the linter/implement-comment-syntax-linter-rule branch 2 times, most recently from e5977ba to bcf284f Compare September 23, 2025 18:54
@domingo2000 domingo2000 force-pushed the linter/implement-comment-syntax-linter-rule branch from bcf284f to 47a6ac3 Compare September 23, 2025 18:54
@domingo2000 domingo2000 changed the title Linter: Implement linter rule (#527) Linter: erb-comment-syntax Implement linter rule (#527) Sep 23, 2025
@marcoroth marcoroth changed the title Linter: erb-comment-syntax Implement linter rule (#527) Linter: Implement erb-comment-syntax linter rule Sep 30, 2025
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.

Thanks for implementing this @domingo2000! 🙏🏼

@marcoroth marcoroth merged commit 07be6fe into marcoroth:main Sep 30, 2025
1 check passed
@marcoroth marcoroth mentioned this pull request Sep 30, 2025
6 tasks
asilano pushed a commit to fac/herb that referenced this pull request Oct 21, 2025
Closes: marcoroth#527 
Advances: marcoroth#537

This PR adds the rule `erb-comment-syntax`. It is the same rule
implemented in
[CommentSyntax](https://github.com/Shopify/erb_lint?tab=readme-ov-file#commentsyntax)
of ERB Lint.

The rule itself avoid parsing errors in the action_view erb default
parsing implementation.

Also the porting of ERB Lint rules to herb rules facilitates the
adoption of Herb as a ERB Lint replacement.

---------

Co-authored-by: Marco Roth <marco.roth@intergga.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linter Rule: CommentSyntax (ERBLint rule port)

2 participants