[FR]: Replace spotless with Ktlint/Ktfmt

Open
#2,029 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
kotlin

Research direction

Start by reviewing the current Spotless configuration and comparing ktlint with ktfmt, especially their support for copyright headers. The issue does not name files or tests; done would require selecting an alternative, preserving required formatting checks, and addressing the reported build-performance concern.

Written by the indexing model from the issue text.

Description

enhancement
Is there an existing issue for this?
  • I have searched the existing issues
Describe the problem

The spotless plugin is creating some build performance issues.

Describe the solution

We should move to ktlint or ktfmt.

Block just shared a timely post: https://engineering.block.xyz/blog/adopting-ktfmt-and-detekt

Additional context

Note that the alternatives don't support everything spotless does, like checking the copyright headers.

Any feedback is welcome

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
Kotlin
Stars
22.1k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/nowinandroid

All issues in android/nowinandroid

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.