Jakub Gwóźdź
08/08/2019, 9:07 AMval x = listOf(1, 2, 3)
.map { it + 1 }
.sum()
(on this example, the .map...
can be set to 16 spaces, but when I add one more space, suddenly it's Unexpected indentation (17) (it should be 12) (cannot be auto-corrected)
I'm running default config id("org.jlleitschuh.gradle.ktlint") version "8.2.0"
plugin during ./gradlew buildsanogueralorenzo
08/23/2019, 2:58 PMGurpreetSK
08/26/2019, 4:46 AMktlint
task. Is there any way to:
1. whitelist a few files so that checks aren’t run for them?
2. un-whitelist the file once some changes have been made to it?
Thankssanogueralorenzo
09/03/2019, 3:20 PMktlintFormat
and that takes too much time compared to just formatting. I tried updating idea codestyle through ktlint again but it doesn't seem to be included.adam-mcneilly
09/12/2019, 7:55 PMSuraj Bokey
09/13/2019, 10:09 AMadam-mcneilly
09/13/2019, 8:43 PMGurpreetSK
09/17/2019, 3:52 PM./gradlew ktlint {list of files}
?myanmarking
10/03/2019, 2:33 PMSha Sha Chu
10/13/2019, 7:00 AMbbaldino
10/23/2019, 6:34 PMImports must be ordered in lexicographic order without any empty lines in-between
) but don't see how to fix it in intellijtapchicoma
11/01/2019, 8:22 PMktlint-gradle
release: https://github.com/JLLeitschuh/ktlint-gradle/blob/master/CHANGELOG.md#910---2019-11-01
Most notable - support for incremental checksVinicius Araujo
11/04/2019, 2:11 PMISO-8859-1
enconding. ktlintFormat task converts files with special characters (only) to UTF-8, resulting in �
. Setting charset=latin1
in root`s .editorconfig
made no difference. Does anyone knows how to solve this?Josh Feinberg
11/21/2019, 10:38 PMGurpreetSK
12/02/2019, 10:53 AMCould not find or load main class com.pinterest.ktlint.Main
error. I updated ktlint dependency also. Do I have to update anything else too? Link to forked project: https://github.com/GurpreetSK95/ktlint/tree/gs/continuation-indentpetermonteer
12/12/2019, 12:25 PMHexa
12/29/2019, 11:52 AMImports must be ordered in lexicographic order without any empty lines in-between
how do I get Ktlint to automatically fix this error?bbaldino
01/06/2020, 5:23 PMmbonnin
02/10/2020, 5:53 PM@IntRange
, @FloatRange
and @Size
annotation to validate input parameters ? (https://developer.android.com/studio/write/annotations#value-constraint)Reuben Jacobs
02/24/2020, 8:24 PMJosh Feinberg
02/27/2020, 3:23 AMcristiangm
03/02/2020, 2:57 PMimport-ordering
?
it feels terrible to go to all the projects of the company adding the exclude to the .editorconfig
when it's an issue with the rule itself that doesn't work as the IDEDariusz Kuc
03/02/2020, 10:19 PMorg.jlleitschuh.gradle.ktlint
which automatically applies the linter against all source sets.
Currently I'm manually configuring ktlint
task to filter out generated
sources but was wondering whether there is some better way?
tasks {
ktlint {
filter {
exclude("**/generated/**")
}
}
}
e.g. above approach is not ideal as anyone using the plugin will have to add that configuration as wellSha Sha Chu
03/06/2020, 11:06 PMColton Idle
03/19/2020, 3:28 AMSinan Kozak
03/30/2020, 7:21 PMMathieu Caron45
04/08/2020, 8:54 AMno-blank-line-before-rbrace
no-consecutive-blank-lines
no-trailing-spaces
no-multi-spaces
comment-spacing
...
I’ve configurated the tool with both gradle plugins (https://github.com/jeremymailen/kotlinter-gradle & https://github.com/JLLeitschuh/ktlint-gradle) and the result is the same.
Environment :
klint : 0.36.0
kotlin version : 1.3.61
gradle : 3.6.1
OS : MacOS 10.15.4
Android Studio : 3.6.1
Thank you in advance for your help.Colton Idle
04/09/2020, 7:37 PMSinan Kozak
04/09/2020, 8:17 PMvanshg
04/22/2020, 5:21 AM