android-ktlint-formatting
Installation
SKILL.md
Android KtLint Formatting Excellence ๐งน๐
Standardized formatting rules for Android developers based on the official Kotlin and Android Style Guides.
โก When to Use
- Code Cleanup: Automatically reformatting messy files.
- Pre-commit Audit: Ensuring the code is perfectly formatted before pushing.
- CI/CD Configuration: Setting up a gatekeeper for code style.
- New Project Setup: Initializing a project with the correct
.editorconfig.
๐๏ธ Core Rules (Android Style)
1. Indentation
- Use 4 spaces for indentation.
- No TAB characters allowed.
- Follow "Continuation Indents" for long method calls (8 spaces).