Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linter: new rule about deprecated string interpolation #1218

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Hidanio
Copy link
Contributor

@Hidanio Hidanio commented Apr 1, 2024

No description provided.

@Hidanio Hidanio added the enhancement New feature or request label Apr 1, 2024
@Hidanio Hidanio self-assigned this Apr 1, 2024
@Hidanio Hidanio marked this pull request as ready for review April 1, 2024 15:54
for _, item := range str.Parts {
variable, ok := item.(*ir.SimpleVar)
if ok {
if variable.IdentifierTkn.Value[0] != 36 { // 36 is $
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use '$' instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right! Fixed, thank you

@Hidanio Hidanio force-pushed the hidanio/string_interpolation_deprecated branch from aba34f2 to bd3e807 Compare November 16, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants