android / android/nowinandroid
[FR]: Replace spotless with Ktlint/Ktfmt
- 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
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