apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

[Documentation]: Add a local validation guide for contributors

Open joeMba opened this issue 3 weeks ago • 1 comments

Problem

Contributors may be unsure which validation checks to run locally before submitting a pull request. Although the repository's GitHub Actions workflow runs several checks, the contribution guidelines do not provide a sufficiently consolidated guide explaining the available Gradle commands, prerequisites, and what each check validates.

This can make it harder for new contributors to identify potential issues before opening a PR.

Proposed solution

Update CONTRIBUTING.md with a dedicated Local Validation Before Submitting a Pull Request section.

The guide should cover:

  • Prerequisites: JDK version, Android SDK requirements, Gradle wrapper, and local.properties configuration.
  • Recommended checks: ktlint, Detekt, Beta Debug unit tests, and Android Lint.
  • Optional checks: Beta Debug and Prod Debug APK assembly and test coverage.
  • Formatting guidance: How to check and automatically fix Kotlin formatting issues.
  • Static analysis: Explain the Detekt baseline and intentional ktlint legacy exclusions.
  • CI reference: Explain how local checks relate to the GitHub Actions pull request workflow.
  • Troubleshooting: Common setup and validation problems.
  • Pre-PR checklist: Steps contributors should complete before submitting changes.

Expected outcome

Contributors have a clear, centralized reference for validating their changes locally, understanding the purpose of each check, and identifying common setup problems before opening a pull request.

Scope

Documentation changes to CONTRIBUTING.md only. No application source code, Gradle configuration, or CI workflow changes are required.

joeMba avatar Nov 12 '26 07:11 joeMba

Hello @nicolas-raoul, @RitikaPahwa4444! Opened this issue as a followup for this discussion.Thanks!

joeMba avatar Nov 12 '26 07:11 joeMba