Skip to content

Conversation

@AndreMiras
Copy link
Member

Add automated Java code style checking using Spotless with:

  • Google Java Format (AOSP style) for Android-friendly formatting
  • New ci/java-lint/ Gradle project for linting
  • New 'spotless' job in GitHub Actions workflow
  • Excludes third-party code (org/kamranzafar/jtar/)

Downstream CI jobs now depend on both flake8 and spotless checks.

@AndreMiras AndreMiras marked this pull request as draft December 6, 2025 19:01
@AndreMiras AndreMiras force-pushed the feature/java_linting branch 3 times, most recently from 68e488d to 0a0c907 Compare December 6, 2025 20:55
@AndreMiras AndreMiras marked this pull request as ready for review December 6, 2025 21:07
@AndreMiras AndreMiras force-pushed the feature/java_linting branch from 0a0c907 to 7038de1 Compare December 7, 2025 13:30
Apply Google Java Format (AOSP style) formatting to all Java files:
- Sort and organize imports alphabetically
- Remove comments between import statements
- Fix line breaks and indentation
- Standardize code formatting across all bootstraps

Files formatted: PythonService, PythonUtil, PythonActivity (all
bootstraps), GenericBroadcastReceiver, Hardware, AssetExtract,
ResourceManager, Service.tmpl.java, and launcher classes.
Add automated Java code style checking using Spotless with:
- Google Java Format (AOSP style) for Android-friendly formatting
- Gradle project in pythonforandroid/bootstraps/ for linting
- New 'spotless' job in GitHub Actions workflow
- Makefile targets: java-lint, java-lint-fix, docker/java-lint
- Excludes third-party code (org/kamranzafar/jtar/)

Downstream CI jobs now depend on both flake8 and spotless checks.
@AndreMiras AndreMiras force-pushed the feature/java_linting branch from 7038de1 to ab65dc4 Compare December 7, 2025 17:00
@kuzeyron
Copy link
Contributor

kuzeyron commented Dec 7, 2025

LGTM! Approved as it seems to be a success with the CI.

@AndreMiras AndreMiras merged commit f69d5b2 into kivy:develop Dec 7, 2025
83 of 84 checks passed
@AndreMiras AndreMiras deleted the feature/java_linting branch December 7, 2025 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants