Skip to content

feat: configure Eclipse formatter for Spotless#571

Open
swetasamasti2310 wants to merge 2 commits into
docling-project:mainfrom
swetasamasti2310:feat/configure-eclipse-formatter
Open

feat: configure Eclipse formatter for Spotless#571
swetasamasti2310 wants to merge 2 commits into
docling-project:mainfrom
swetasamasti2310:feat/configure-eclipse-formatter

Conversation

@swetasamasti2310

Copy link
Copy Markdown

Title: feat: configure Eclipse formatter for Spotless
Description:

Changes

  • Updated Eclipse formatter XML to match .editorconfig settings
  • Changed indentation from 4 to 2 spaces
  • Changed line length from 120 to 180 characters
  • Enabled new lines before else/catch/finally
  • Updated Spotless config to use Eclipse formatter

Testing

  • Ran ./gradlew spotlessApply - formatting works correctly
  • Ran ./gradlew spotlessCheck - all checks pass
  • Verified 2-space indentation is applied

Resolves #378

- Updated Eclipse formatter XML to match .editorconfig
- Changed indentation from 4 to 2 spaces
- Changed line length from 120 to 180 characters
- Enabled new lines before else/catch/finally

Resolves docling-project#378

Signed-off-by: swetasamasti2310 <swetagupta2310@gmail.com>
- Added eclipse().configFile() to use Eclipse formatter XML
- Added removeUnusedImports() to clean up imports
- Added trimTrailingWhitespace() for whitespace cleanup
- Added endWithNewline() to ensure files end with newline

Signed-off-by: swetasamasti2310 <swetagupta2310@gmail.com>
@swetasamasti2310 swetasamasti2310 force-pushed the feat/configure-eclipse-formatter branch from 1547ca1 to 2783a95 Compare June 29, 2026 04:11
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.

Create code formatting rules

1 participant