Ali Naqvi
12/18/2023, 5:35 PMJavier
03/28/2024, 11:53 AMNivaldo H Bondança
05/03/2024, 1:41 PMsnowe
06/11/2024, 4:52 PMTrey
06/17/2024, 5:06 PMgit diff --name-only --cached
to the pre-commit script?snowe
06/17/2024, 8:50 PMblah(
name = a.b.c.d.e.f.g.h
)
is going to break at any point? It seems that this is partially handled by breaking the expression into parts and then grouping, but I donât understand the grouping. Also the doc comments are quite confusing in places. or here where Iâm confused as to what the groupings actually accomplish. Why is a paired with b, but c is paired with d, with no group between b and c?Robin PokornĂ˝
07/05/2024, 8:16 AMchristophsturm
07/17/2024, 2:32 PMthrow OrmException(
"error binding parameter"
)
to
throw OrmException(
"error binding parameter")
putting the closing bracket on the same line. is that documented somewhere?christophsturm
08/07/2024, 10:51 AMseb
08/07/2024, 4:51 PMseb
08/08/2024, 10:39 AMNivaldo H Bondança
08/13/2024, 1:04 PMbuild.gradle
/ pom.xml
)Nivaldo H Bondança
08/14/2024, 1:40 PMNivaldo H Bondança
08/14/2024, 2:10 PMchristophsturm
09/18/2024, 7:24 AMivanmorgillo
09/18/2024, 3:45 PMivanmorgillo
09/18/2024, 3:46 PMseb
09/18/2024, 4:15 PMivanmorgillo
09/18/2024, 4:15 PMChris Lee
09/18/2024, 9:34 PMfun canonicalText(importDirective: KtImportDirective) =
importDirective.importedFqName?.asString() +
" " +
importDirective.alias?.text?.replace("`", "") +
" " +
if (importDirective.isAllUnder) "*" else ""
val sortedImports = importList.imports.sortedBy(::canonicalText).distinctBy(::canonicalText)
GreyhairRedbear
09/19/2024, 7:16 PMreturn code.replaceRange(
importList.startOffset,
importList.endOffset, importsWithComments.joinToString(separator = "\n") { imprt -> imprt.text } + "\n")
(Sorry if the formatting is messed up there, currently on mobile)
Adding \n
instead of something like System.lineSeparator()
seems a bit suspicious to me.GreyhairRedbear
09/19/2024, 7:18 PMChris Lee
09/20/2024, 12:10 AMivanmorgillo
11/25/2024, 2:50 PMJavier
11/28/2024, 11:12 AMGopal S Akshintala
03/12/2025, 11:49 AMerror: Expecting an expression
. Is this a known issue?
Sample project to replicate where it's configured through spotless: DynamicVariableGenerator.ktseb
05/01/2025, 5:26 PMursus
05/24/2025, 1:05 AMNivaldo H Bondança
08/07/2025, 9:06 PMtrimIndent()
/ trimMargin()
and wanted to hear your thoughts about it.
We'll use the poll results to guide our approach.
Feel free to suggest alternatives as well, but do keep in mind this has to work with all the different use cases, which the represented code here for sure does not cover.
Option 1
val a =
"""
a multiline
string
"""
.trimIndent()
.nextMethod()
val b =
"""
|a multiline
| string
|"""
.trimMargin()
.nextMethod()
Option 2
val a =
"""
a multiline
string
"""
.trimIndent()
.nextMethod()
val b =
"""
|a multiline
| string
|"""
.trimMargin()
.nextMethod()
Option 3
val a =
"""
a multiline
string
"""
.trimIndent()
.nextMethod()
val b =
"""
|a multiline
| string
|"""
.trimMargin()
.nextMethod()
Option 4
val a =
"""
a multiline
string
""".trimIndent()
.nextMethod()
val b =
"""
|a multiline
| string
|""".trimMargin()
.nextMethod()
Colton Idle
08/23/2025, 5:26 PM