-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Autofix of UnnecessaryGString leaves invalid code in data provider of Spock tests #436
Comments
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Still valid and relevant issue. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Still valid and relevant issue. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
nostale |
Hi,
I'm using npm-groovy-lint with my Spock tests that have a data provider for several test cases.
After auto-fixing the code using npm-groovy-lint the source code got uncompilable because of wrongly replaced GString quotes.
npm-groovy-lint does not detect the end of the GStrings correctly and therefore replaces the the quotes at the wrong place leaving the source code uncompilable.
This:
"""{ "view": "available", "options": ["empty"] }"""
Becomes that:
'''{ "view": "available", "options": ["empty"] }"""
This:
"""JSON is missing image"""
Becomes that:
That behaviour is not good.
Kind regards
The text was updated successfully, but these errors were encountered: