-
Notifications
You must be signed in to change notification settings - Fork 186
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
testkit: (unclear) error when the test input contains a license header #1828
Comments
The issue was something else: in the target input file for the test the |
Thanks for the report!
😅 I renamed the issue accordingly. The heuristic to detect the semantic comment is indeed quite basic: scalafix/scalafix-testkit/src/main/scala/scalafix/testkit/SemanticRuleSuite.scala Lines 31 to 42 in 9e334d1
I guess a reasonable fix would be to iterate on all comments until a valid HOCON syntax with a |
Created a PR at #1832 |
We get the below error while running simple scalafix tests. This error happens during parsing an error (uhoh).
Looking into the real error reveals this:
because the generated file contains this line:
Solution: Quote strings properly in the generated hocon config. Fail if quoting is not possible.
Reported error:
The text was updated successfully, but these errors were encountered: