Command line flag --code-style=android_studio
has no effect in v0.49.0
#1982
Milestone
--code-style=android_studio
has no effect in v0.49.0
#1982
Expected Behavior
ktlint --code-style=android_studio
should behave exactly like the deprecated flagktlint --android
, this is also stated in the warning message printed after runningktlint --android
:ktlint_code_style=android_studio
in.editorconfig
works properly, but--code-style=android_studio
in command-line has no effect.Observed Behavior
After running the command
ktlint --code-style=android_studio --log-level=debug {filepath}
on a file, the following output is observed:However, running
ktlint --android --log-level=debug {filepath}
will show:Note that
ktlint_code_style: android
is not mentioned in first command and the reported errors are different.Steps to Reproduce
MyEnum.kt
with following content:ktlint --android
-> no issues reportedFull logs for `ktlint --log-level=debug --android`
ktlint --code-style=android_studio
-> one issue reported:Full logs for `ktlint --log-level=debug --code-style=android_studio`
Your Environment
.editorconfig
The text was updated successfully, but these errors were encountered: