Skip to content

Integrate detekt #5135

Open
Open
@TimoPtr

Description

@TimoPtr

Is your feature request related to a problem? Please describe.

In this comment #5132 (comment) we see that the naming was wrong. But Ktlint is not reporting this as an issue.

Describe the solution you'd like

Use Detekt that have rules for such things and have official plugin for gradle and Android Studio. It offer better experience also to extend than KTlint.
For some time we can keep both setup alongside they don't interfere with each other.

Additional context

I envision to add custom rules for our project like

  • forcing named params when there are multiple booleans without names (for better readability in PR)
  • forbid usage of android logger and encourage to use Timber

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions