-
Notifications
You must be signed in to change notification settings - Fork 165
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
Disable filename rule does not work #268
Comments
You have space between assignment, it should look following: disabled_rules=filename Related to pinterest/ktlint/issues/555 |
Thanks for the reply. I tried that but does not work. The debug log shows that it is without space |
Just to be sure, have you set ktlint version in plugin configuration to ktlint {
version.set("0.34.2")
} Latest release of plugin, by default, uses |
That worked. Sorry for the delay response. |
Make sure to use latest ktlint version |
I added the .editorconfig but still not able to disable the filename rule.
disabled_rules = filename
Turned on the debug and could see the settings are being applied
[DEBUG] Discovered .editorconfig (/some/path) {charset=utf-8, disabled_rules=filename, end_of_line=lf, indent_size=4, indent_style=space, insert_final_newline=true, trim_trailing_whitespace=true}
Still getting file name errors when i run
./gradlew ktlintFormat
[ERROR] class TestEnum should be declared in a file named TestEnum.kt (cannot be auto-corrected)
The text was updated successfully, but these errors were encountered: