-
-
Notifications
You must be signed in to change notification settings - Fork 71
Linter: Implement html-input-require-autocomplete linter rule
#565
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
Linter: Implement html-input-require-autocomplete linter rule
#565
Conversation
|
Currently I only implemented the rule for the HTML nodes. For the ruby CallNodes that are inside of the content of ERBNodes i don't know how to proceed, I checked the other rules, but there is no Ruby Prism AST inside the ERB nodes to analyze with visitors. I think this could be done in 2 ways.
@marcoroth if you have any more ideas in how to cover the remaining tests for the form helpers, I would be happy to help. |
e1015fa to
e51e814
Compare
e51e814 to
8e4ee3e
Compare
html-inputs-require-autocomplete linter rule
marcoroth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @domingo2000!
Currently I only implemented the rule for the HTML nodes.
This is fine, all rules currently have this limitation. We are going to solve this in the parser directly, so that the rules can always assume to operate on HTML elements/the Herb Syntax Tree, even if the source defines the HTML elements in ERB helpers.
I touched up the docs/messages a bit and migrated to the new tests. So far so good, thanks for working on this @domingo2000! 🙏🏼
html-inputs-require-autocomplete linter rulehtml-input-require-autocomplete linter rule
…oroth#565) Resolves marcoroth#552 --------- Co-authored-by: Marco Roth <marco.roth@intergga.ch>
Implements the RequireInputAutocomplete ERBLint rule
Resolves #552