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

White spaces are inserted into string tempalte during formatting #1423

Closed
petertrr opened this issue Jul 5, 2022 · 2 comments
Closed

White spaces are inserted into string tempalte during formatting #1423

petertrr opened this issue Jul 5, 2022 · 2 comments
Assignees
Labels
autofix Issues related to diktat in autofix mode bug Something isn't working

Comments

@petertrr
Copy link
Member

petertrr commented Jul 5, 2022

Describe the bug

val foo = 
"""|Test1Test.java:1:1: Avoid using default package
                    |Test1Test.java:3:6: Class name should be in PascalCase
                    |Test1Test.java:5:5: Variable name should be in lowerCamelCase
                    |Test1Test.java:7:1: File should end with trailing newline
                    |""".trimMargin()

image

Expected behavior

Content of string tempalte shouldn't be changed.

Environment information

  • diktat version: 1.2.1
@petertrr petertrr added bug Something isn't working autofix Issues related to diktat in autofix mode labels Jul 5, 2022
@0x6675636b796f75676974687562
Copy link
Member

@petertrr, I believe this is a duplicate of #1347.

@0x6675636b796f75676974687562
Copy link
Member

Duplicate of #1347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autofix Issues related to diktat in autofix mode bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants