Fix replacement of redundant curly braces by paul-dingemans · Pull Request #2617 · ktlint/ktlint (original) (raw)

Description

Due to incorrect construction of the string template, it could happen that an import is removed as it was falsely flagged as unused as the "$" was added as prefix in the identifier.

Closes #2615

Checklist

Before submitting the PR, please check following (checks which are not relevant may be ignored):

Documentation is updated. See difference between snapshot and release documentation