[openstreetmap/openstreetmap-website] Enable erb_lint hard coded string linter (PR #6686)

Andy Allan notifications at github.com
Wed Jan 7 16:34:21 UTC 2026


The implementation uses a customised linter, to add `·` to the list of punctuation that doesn't need translating.

We can remove our customised linter when this list becomes a config option, see https://github.com/Shopify/erb_lint/pull/397

This follows on from #6569 and #6583 (see also #6627) and will prevent these types of problems from recurring.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6686

-- Commit Summary --

  * Enable erb_lint hard coded string linter

-- File Changes --

    M .erb_lint.yml (9)
    A .erb_linters/custom_hard_coded_string.rb (50)
    M app/views/share_panes/show.html.erb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6686.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6686.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6686
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6686 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260107/031a3ddc/attachment.htm>


More information about the rails-dev mailing list