Open mmd-osm opened 3 weeks ago
This is not currently supported and would require a special parser. It would be a nice addition to the Prism-parser I have been working on.
Thanks a lot for the quick reply. I think for the time being, our best option would be to go ahead with the "ignore_unused" setting. I agree that supporting this use case would be a nice addition.
Realized we have this as well: https://github.com/glebm/i18n-tasks/blob/main/lib/i18n/tasks/scanners/ast_matchers/rails_model_matcher.rb
and then the more contextual parser I have been working on: https://github.com/glebm/i18n-tasks/blob/main/lib/i18n/tasks/scanners/prism_scanner.rb
In https://github.com/openstreetmap/openstreetmap-website/pull/5242, we were wondering why i18n-tasks is reporting a model validation message as unused, although it is being referenced from a model:
At the moment, we need to add the error string to the i18n-tasks.yml file to ignore the warning:
I'm not sure if we're missing something here. Is this the recommended approach to address model validation messages?