Add Spotless Maven Plugin with Eclipse JDT formatter for AOSP code style#4
Merged
ByteHamster merged 4 commits intoByteHamster:mainfrom Jan 14, 2026
Merged
Conversation
Configuration: - Added Spotless Maven Plugin version 2.43.0 - Configured Eclipse JDT formatter with AOSP code style - Added settings/eclipse-aosp-style.xml with AOSP formatting rules - Import ordering: android, androidx, com.android, dalvik, libcore, com, org, java, javax - Removes unused imports automatically - Bound 'check' goal to 'verify' phase Formatting Rules: - 4-space indentation - 100 character line length - Opening braces on same line - Preserved line breaks in method chains (join_wrapped_lines = false) - AOSP import ordering with blank lines between groups Additional Changes: - Expanded README.md with build instructions, usage examples, and formatting documentation - Reformatted Java source files with AOSP style Verification: - Ran 'mvn spotless:check' to verify configuration - Confirmed formatting preserves preferred method chain style Usage: - mvn spotless:check - Verify code formatting - mvn spotless:apply - Auto-format code to match the style
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configuration:
Formatting Rules:
Additional Changes:
Verification:
Usage: