Repository navigation
Enable all Herb lint rules and template formatting - #2804
Merged
Merged
Conversation
Enable every lint rule, formatting, Tailwind class sorting, and editor support with pinned development packages and CI enforcement. Preserve compatibility and exact-output fixtures with documented exceptions, while retaining embedded Ruby linting. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use semantic hidden and accessible status markup, assert Turbo Stream structure, format product and yielding fixtures, and update measured allocation expectations across Rails versions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Retain main's rubyfmt adoption alongside Herb CI and keep the accessible status and structural Turbo Stream assertions in rubyfmt style. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
6b59c7bf5525025e163a0a08cb1287c84d67cadb↑ After merging, all 171 rules pass across 217 templates; all 216 formattable files pass. rubyfmt, embedded Ruby lint, changed Ruby style checks, and 228 Rails 8.1 rendering, integration, browser, and allocation tests pass.
↑ Before merging, targeted suites passed on Rails 7.1, 7.2, 8.0, and Rails main; Ruby-head allocation tests passed using isolated source-platform bundles with rubydex 0.4.1.
↓ The formatter is experimental. Other appraisal suites weren't rerun after merging; latest CI remains unverified.
What are you trying to accomplish?
Enable all Herb lint rules, template formatting, Tailwind class sorting, and editor support in one pull request.
What approach did you choose and why?
Pin the npm tools, share configuration, fix existing findings, and enforce lint and formatting in CI. Keep ERB Lint only for embedded Ruby checks. Exclude all
.ttgenerator templates from Herb.Anything you want to highlight for special attention from reviewers?
Keep narrow exceptions for deliberate compatibility coverage and generated Markdown. Remove six avoidable file-level exceptions using semantic visibility and status markup, structural Turbo Stream assertions, formatter-safe yielded text, and remeasured allocation expectations. No rendering-engine or runtime dependency changes.