https://kotlinlang.org logo
#ktlint
Title
# ktlint
s

stoyicker

02/03/2023, 2:45 PM
hello, I'm having issues trying to make ktlint work on a gradle project with two modules. one of them is using moshi via ksp, which is generating some files matching *.kt under thatModule/build/kspCaches and ktlint is applying to those. I'm trying to prevent this by using a .editorconfig file at the root of the root module
Copy code
root = true

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

[*.kt]
ktlint_code_style = android

[*.kts]
ktlint_code_style = official

[**/kspCaches/*]
ktlint_standard = disabled
I'm invoking ktlint as "ktlint --reporter plain" and its version is 0.48.1, and tbh I'm not even sure the .editorconfig stuff is being picked up at all
9 Views