Skip to content

Don't use --android flag #1582

Description

@IndiTheo

--android flag was deprecated in ktlint: ktlint/ktlint#2096

To adhere to android style, a code style should be defined in .editorconfig:

[*.{kt,kts}]
ktlint_code_style = android_studio

(See ktlint/ktlint#1990)

It's still used here:

if is_android_rules_enabled(ctx.attr.config):
args.append("--android")

And enabling it leads to:

Error: no such option --android

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions