Appsilon / box.linters

lintr-compatible linters for box modules in R
https://appsilon.github.io/box.linters/
4 stars 0 forks source link

[Feature request] Configurable open and closing delimiters for linting glue strings #100

Closed radbasa closed 4 weeks ago

radbasa commented 1 month ago

{glue} can be configured to use different open and close symbols/characters for interpolation.

By default glue uses { and } as parsing delimiters.

{box.linters} at version 0.9.x does not support configurable delimiters. It is hard-coded for { and }:

https://github.com/Appsilon/box.linters/blob/c8a41d172fdd61a9c87427beffc2a855af408b48/R/get_objects_in_strings.R#L16

It would be nice if the open and close delimiters can be configured.

Requested by @nbbn

radbasa commented 1 month ago

(after-the-fact) Working on this because I found a bug.

"Some {{value_a}} and {value_b} string" is not returning value_b.