Skip to content
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

Rule "filename" can not be disabled #1522

Closed
jayvdb opened this issue Jun 26, 2022 · 1 comment
Closed

Rule "filename" can not be disabled #1522

jayvdb opened this issue Jun 26, 2022 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented Jun 26, 2022

#1117 recently added PascalCase checking, which caused some of my files to trigger this rule, and I dont appear to be able to disable it.

Expected Behavior

It would be nice if ktlint --disabled_rules=filename some_bad_name.kt did not emit an error

Observed Behavior

some_bad_name.kt:1:1: File name 'some_bad_name.kt' should conform PascalCase (cannot be auto-corrected) (filename)

Steps to Reproduce

  1. Create some_bad_name.kt with some Kotlin code.
  2. Run ktlint --disabled_rules=filename some_bad_name.kt

Your Environment

  • Version of ktlint used: 0.46.0+
  • Relevant parts of the .editorconfig settings: n/a
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): n/a
  • Version of Gradle used (if applicable): n/a
  • Operating System and version: Darwin Kernel Version 21.5.0
@paul-dingemans
Copy link
Collaborator

This a regression bug in ktlint 0.46.x. See #1520

@paul-dingemans paul-dingemans closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants