-
Notifications
You must be signed in to change notification settings - Fork 163
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
support ktlint 0.45-0.48 #620
Conversation
ada323a
to
8e78243
Compare
@@ -100,8 +100,8 @@ class TestProject( | |||
} | |||
|
|||
companion object { | |||
const val CLEAN_SOURCES_FILE = "src/main/kotlin/clean-source.kt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this now fails lint as an "unfixable" error so we need to change these
8e78243
to
a178f3b
Compare
} | ||
} catch (e: ParseException) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ParseException was changed to KtLintParseException, so this will catch either one
a178f3b
to
777b6cd
Compare
Thank you 🚀 , would be awesome it this would get merged and work. |
9d043cb
to
01c2d3d
Compare
0bac117
to
9b7bd21
Compare
plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/KtLintInvocation.kt
Outdated
Show resolved
Hide resolved
plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/KtLintInvocation.kt
Outdated
Show resolved
Hide resolved
plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/KtLintInvocation.kt
Outdated
Show resolved
Hide resolved
plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/KtLintInvocation.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly just some access modifier changes requested
b1eab6e
to
6e353b7
Compare
6e353b7
to
2689b69
Compare
cb: (LintError, Boolean) -> Unit | ||
): com.pinterest.ktlint.core.KtLint.ExperimentalParams { | ||
val script = !file.name.endsWith(".kt", ignoreCase = true) | ||
val editorConfigOverride = userDataToEditorConfigOverride(userData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Store this in a local lazy variable. It doesn't need to be created for every file
add tests for 0.44 and 0.45 as well This resolves JLLeitschuh#589 This resolves JLLeitschuh#607
2689b69
to
7a76c8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
support ktlint 0.46-0.48
add tests for 0.44 and 0.45 as well
This resolves #589
This resolves #607