android / android/nowinandroid

[FR]: Replace spotless with Ktlint/Ktfmt

Open
#2,029 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
21.8k
Forks
4.6k
Avg merge
19h 20m
Merged PRs (30d)
2

Description

### Is there an existing issue for this?

- [x] 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

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.