Skip to content

Conversation

@myabc
Copy link
Contributor

@myabc myabc commented Dec 20, 2025

Ticket

https://community.openproject.org/wp/70149

What are you trying to accomplish?

Screenshots

There should be no visible changes.

What approach did you choose and why?

What this PR doesn't do

The following Herb compilation errors will not be fixed:

Files with compilation errors:
  - app/views/admin/settings/mail_notifications_settings/show.html.erb
  - app/views/admin/settings/work_packages_general/show.html.erb
  - app/views/custom_actions/_form.html.erb
  - app/views/custom_fields/_form.html.erb

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

Fix malformed HTML (e.g. unmatched closing tags) as well as other issues
identified as "parse errors" when running:

    herb analyze .

https://community.openproject.org/work_packages/70148
Fixes `InvalidNestingError` found when running:

    herb analyze .
Also creates an initial config via:

    npx herb-lint --init
@myabc myabc changed the title Code maintenance/70149 herb [#70149] Configure Herb for HTML-aware ERb linting Dec 20, 2025
@myabc myabc added this to the 17.0.x milestone Dec 20, 2025
@myabc myabc added maintenance ruby Pull requests that update Ruby code DO NOT MERGE labels Dec 20, 2025
@myabc myabc changed the base branch from release/17.0 to bug/70148-fix-erb-html-errors-using-herb December 20, 2025 22:34
This causes rendering issues in widgets that make use of tag helpers
since it overrides `ActionView::Helpers::TagHelper#tag` albeit with a
different signature.

This option does not appear to be used currently.

This partially reverts commit 585bb74
@myabc myabc force-pushed the code-maintenance/70149-herb branch from 50dafad to 5f14900 Compare December 20, 2025 23:41
<colgroup>
<% columns.each do |column| %>
<col <%= "opHighlightCol" unless column.attribute == :hierarchy %>>
<col <% if column.attribute == :hierarchy %>data-highlight="false"<% end %>>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was missed here: 44412c3

@myabc myabc force-pushed the bug/70148-fix-erb-html-errors-using-herb branch from 9ec2f6c to 8378e6d Compare December 22, 2025 13:39
Base automatically changed from bug/70148-fix-erb-html-errors-using-herb to release/17.0 December 22, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE maintenance ruby Pull requests that update Ruby code

Development

Successfully merging this pull request may close these issues.

2 participants