Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Formatting does not work #296

Closed
BorzdeG opened this issue Oct 16, 2018 · 3 comments
Closed

Formatting does not work #296

BorzdeG opened this issue Oct 16, 2018 · 3 comments

Comments

@BorzdeG
Copy link

BorzdeG commented Oct 16, 2018

ktlint version: 0.29.0

source file Test.kt:

class Test {
val t = "test"

fun testF() {
 println("test")
}
}

.editorconfig:

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

command run: ./ktlint -F -y --debug Test.kt:

[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "plain" reporter with {verbose=false, color=false}
[DEBUG] Checking CUT_PROJECT_PATH/Test.kt
[DEBUG] Discovered .editorconfig (CUT_PROJECT_PATH) {charset=utf-8, end_of_line=lf, indent_size=2, indent_style=space, insert_final_newline=true, trim_trailing_whitespace=true}
[DEBUG] 1512ms / 1 file(s) / 0 error(s)

actual result: no changes
expected result:

class Test {
  val t = "test"

  fun testF() {
    println("test")
  }
}
@BorzdeG
Copy link
Author

BorzdeG commented Oct 16, 2018

./ktlint --debug Test.kt does not produce errors.

@shyiko
Copy link
Collaborator

shyiko commented Oct 16, 2018

This is something @iboss-ptk is working on. Track progress in #294.

@shyiko
Copy link
Collaborator

shyiko commented Feb 11, 2019

Moved to #338.

@shyiko shyiko closed this as completed Feb 11, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants