Skip to content

Commit f87c19d

Browse files
Enable Spotless verification for Android Port and consolidate reporting
- Added `spotless-maven-plugin` to `maven/android/pom.xml` configured for `Ports/Android/src`. - Updated `scripts/build-android-port.sh` to run `spotless:check` with verbose logging and capture results to a report file. - Modified `scripts/lib/cn1ss.sh` and `scripts/run-android-instrumentation-tests.sh` to append the Spotless report to the main Android status comment. - Updated `scripts/run-android-instrumentation-tests.sh` to fail the build if Spotless checks failed, after reporting is complete. - Updated `.github/workflows/scripts-android.yml` and reporting scripts to suppress noisy "missing report" warnings and correctly collect test artifacts.
1 parent 3f5cf03 commit f87c19d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

maven/android/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@
4141
<artifactId>spotless-maven-plugin</artifactId>
4242
<version>2.43.0</version>
4343
<configuration>
44+
<baseDir>${project.basedir}/../../Ports/Android/src</baseDir>
4445
<java>
4546
<includes>
46-
<include>${project.basedir}/../../Ports/Android/src/**/*.java</include>
47+
<include>**/*.java</include>
4748
</includes>
4849
<googleJavaFormat>
4950
<version>1.17.0</version>
@@ -303,4 +304,4 @@
303304
</profile>
304305
</profiles>
305306

306-
</project>
307+
</project>

0 commit comments

Comments
 (0)