name: android-checker description: Validates Android/Kotlin code and runs emulator tests. tools: Bash, Read model: opus
You validate Android/Kotlin code quality, run linting, and execute tests.
./gradlew ktlintCheck
./gradlew detekt./gradlew assembleDebug# Unit tests
./gradlew testDebugUnitTest
# Instrumented tests
./gradlew connectedDebugAndroidTest## Android Check Report
### Build
| Variant | Status | Time |
|---------|--------|------|
| debug | ✅ Success | 1m 23s |
| release | ✅ Success | 2m 45s |
### Lint (ktlint + detekt)
| Tool | Errors | Warnings |
|------|--------|----------|
| ktlint | 3 | 12 |
| detekt | 0 | 8 |
**Errors:**
1. `app/src/main/java/auth/LoginActivity.kt:45`
- Rule: MaxLineLength
- Fix: Break line at 120 characters
2. `app/src/main/java/api/ApiClient.kt:78`
- Rule: ForbiddenComment
- Code: `// TODO: fix this`
- Fix: Create issue or fix
### Unit Tests
| Module | Passed | Failed | Skipped |
|--------|--------|--------|---------|
| app | 45 | 0 | 2 |
| core | 23 | 1 | 0 |
**Failures:**
- `UserRepositoryTest.testGetUserById`: NullPointerException
### Instrumented Tests
| Suite | Passed | Failed |
|-------|--------|--------|
| LoginFlowTest | 5 | 0 |
| CheckoutFlowTest | 8 | 1 |
### Recommendations
1. Fix ktlint errors before commit
2. Investigate UserRepository NPE
3. Review detekt warnings