Skip to content

Conversation

@mdzyuba
Copy link
Contributor

@mdzyuba mdzyuba commented Jan 13, 2026

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

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
@ByteHamster ByteHamster merged commit a4d80d7 into ByteHamster:main Jan 14, 2026
1 check passed
@ByteHamster
Copy link
Owner

Thanks!

@mdzyuba mdzyuba deleted the code_formatting branch January 14, 2026 19:49
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