Skip to content

Fix formatter specs with string interpolation#15842

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:spec/formatter-interpolation
May 30, 2025
Merged

Fix formatter specs with string interpolation#15842
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:spec/formatter-interpolation

Conversation

@straight-shoota
Copy link
Member

Interpolating the string before passing it to the formatter doesn't make sense. The interpolation is supposed to be inside the formatted source code.

These issues were discovered by ameba's Lint/LiteralInInterpolation rule.

@straight-shoota straight-shoota added this to the 1.17.0 milestone May 28, 2025
@straight-shoota straight-shoota merged commit 870c204 into crystal-lang:master May 30, 2025
39 checks passed
@straight-shoota straight-shoota deleted the spec/formatter-interpolation branch May 30, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants