We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similar to #12, if I have a comment inside of an array initializer then that comment is counted as a valid element and is joined with a comma.
Example:
class TestClass { List<String> vals = new List<String>{ // test comment 1 'val1', 'val2', // test comment 2 'val3' // test comment 3 }; }
Formatted:
class TestClass { List<String> vals = new List<String>{ // test comment 1 , 'val1', 'val2', // test comment 2 , 'val3', // test comment 3 }; }
The text was updated successfully, but these errors were encountered:
I'm not sure there is very easy way for me to help that at the parser level. Open to suggestions.
Sorry, something went wrong.
I'll place this here as a similar problem, we can break this out as a separate issue if you'd prefer.
Same problem but in the list of params for a method
class TestClass { { method1('foo', /* comment */ 'bar'); } void method1(String param1, String param2){} }
class TestClass { { method1('foo', /* comment */ , 'bar'); } void method1(String param1, String param2) { } }
This is the format result in v0.1.0. They are reasonable now.
class TestClass { { method1('foo' /* comment */ , 'bar'); } void method1(String param1, String param2) { } }
No branches or pull requests
Similar to #12, if I have a comment inside of an array initializer then that comment is counted as a valid element and is joined with a comma.
Example:
Formatted:
The text was updated successfully, but these errors were encountered: