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

Codemod to fix string concat inside lists #252

Closed
clavedeluna opened this issue Feb 12, 2024 · 0 comments · Fixed by #268
Closed

Codemod to fix string concat inside lists #252

clavedeluna opened this issue Feb 12, 2024 · 0 comments · Fixed by #268
Assignees
Labels
enhancement New feature or request new-codemod Description for a new codemod

Comments

@clavedeluna
Copy link
Contributor

Consider this list

bad = [
"hello"
"world"
"my",
"name"
]

It's really unlikely that I wanted to ignore the comma between the first and second element. A codemod that would instead remove str concat inside lists and make the concat separate elements would be what I would want. So:

good = [
"hello",
"world"
"my",
"name"
]
@clavedeluna clavedeluna added enhancement New feature or request new-codemod Description for a new codemod labels Feb 12, 2024
@clavedeluna clavedeluna self-assigned this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new-codemod Description for a new codemod
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant