pinterest / ktlint

An anti-bikeshedding Kotlin linter with built-in formatter
https://pinterest.github.io/ktlint/
MIT License
6.07k stars 504 forks source link

Ignore modifier of backing property in `android_studio` code style #2552

Closed paul-dingemans closed 4 months ago

paul-dingemans commented 4 months ago

Description

Ignore modifier of backing property in android_studio code style

Extract backing-property-name from property-naming rule. This allows users to disable this rule, but keep the property-naming rule in place.

For android_studio code style the restrictions regarding the modifier of the correlated property or function is ignored entirely as the Android Kotlin Styleguide does not require it to be public.

Closes #2528

Checklist

Before submitting the PR, please check following (checks which are not relevant may be ignored):

Documentation is updated. See difference between snapshot and release documentation