You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one feels critical to me and, and I guess should be hotfixed
Fixing this one might introduce this issue.
I am having file that according to AS is formatted OK.
object Someclass : List<Shortcut> by listOf(
Shortcut(
id = "1",
url = "url"
),
Shortcut(
id = "2",
url = "asd"
),
Shortcut(
id = "3",
name = "TV"
)
)
Ktlint found error:
Unexpected indentation (expected 0, actual 4)
And formatted this like:
object SomeClass : List<Shortcut> by listOf(
Shortcut(
id = "1",
name = "Sport"
),
Shortcut(
id = "2",
name = "Nöje"
),
Shortcut(
id = "3",
name = "TV"
)
)
After I run ktlint again I am getting error
Unexpected indentation (expected 4, actual 8)
So even ktlint made formatting, it still reports error.
Its now arguing with itself
version 0.38.1
The text was updated successfully, but these errors were encountered:
This one feels critical to me and, and I guess should be hotfixed
Fixing this one might introduce this issue.
I am having file that according to AS is formatted OK.
Ktlint found error:
Unexpected indentation (expected 0, actual 4)
And formatted this like:
After I run ktlint again I am getting error
Unexpected indentation (expected 4, actual 8)
So even ktlint made formatting, it still reports error.
Its now arguing with itself
version 0.38.1
The text was updated successfully, but these errors were encountered: