David Bilík
03/15/2023, 7:41 AM.editorconfig
file
root = true
[*.{kt,kts}]
ktlint_code_style = official
[**/build/generated/**/*.kt]
ktlint_standard_filename = disabled
and I still get reports like these
▶ ./gradlew lintKotlin
> Task :features:account-settings:lintKotlinDevDebug FAILED
/.../features/account-settings/build/generated/ksp/devDebug/kotlin/com/project/accountSettings/editProfile/location/comprojectaccountSettingseditProfilelocationAccountSettingsProfileLocationScreen.kt:1:1: Lint error > [filename] File name 'comprojetaccountSettingseditProfilelocationAccountSettingsProfileLocationScreen.kt' should conform PascalCase
/.../features/account-settings/build/generated/ksp/devDebug/kotlin/com/project/accountSettings/ui/comprojectaccountSettingsuiAccountSettingsAccountSettings.kt:1:1: Lint error > [filename] File name 'comprojectaccountSettingsuiAccountSettingsAccountSettings.kt' should conform PascalCase
I’ve tried to disable the whole ruleset but it seems that this ktlint_standard* = disabled
declaration does not work for me. But the glob should be fine because eg. I’m also fighting line height violations and if I set max_line_length = 1000
then it’s applied.
I’m using kotlinter gradle plugin but not sure if it makes a difference