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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions