Installable skillApache-2.0

Android Tooling Standards

Standards for Static Analysis (Detekt, Ktlint) and CI/CD Checks

BY David-Li0406UPDATED Oct 27, 2026
INTENDED FOR◈OpenClawInstall in a listed agent.

instructions.md

---
name: android-tooling-linting
description: Standards for Static Analysis (Detekt, Ktlint) and CI/CD Checks
metadata:
  labels: [android, tooling, lint, detekt]
  triggers:
    files: ['build.gradle.kts', 'detekt.yml']
    keywords: ['detekt', 'ktlint', 'lint']
---

# Android Tooling Standards

## **Priority: P1**

## Implementation Guidelines

### Static Analysis

- **Detekt**: Enforce code complexity rules (LongMethod, LargeClass). Fail build on high complexity.
- **Ktlint**: Enforce formatting style (Indent, Spacing). Use `jlleitschuh` plugin.
- **Android Lint**: Treat warnings as errors in CI (`abortOnError = true`).

### CI Gates

- **Pre-commit**: Run lightweight checks (formatting) locally.
- **Pipeline**: Run full checks (Detekt + Lint + Unit Tests) on Pull Request.

## Anti-Patterns

- **Suppress**: `**No @Suppress**: Fix the root cause.`
- **Manual Formatting**: `**No Manual Format**: Auto-format on save.`

## References

- [Configuration](references/implementation.md)
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.