Skip to content

Introduce Spotless and apply formatting to entire project#161

Merged
BartoszLitwiniuk merged 1 commit into
masterfrom
code-auto-format
Mar 11, 2026
Merged

Introduce Spotless and apply formatting to entire project#161
BartoszLitwiniuk merged 1 commit into
masterfrom
code-auto-format

Conversation

@BartoszLitwiniuk

@BartoszLitwiniuk BartoszLitwiniuk commented Dec 22, 2024

Copy link
Copy Markdown
Collaborator

Description

This PR introduces Spotless to the project and applies formatting to all source files based on the configured rules.

Purpose

  • To establish a consistent and automated code formatting standard across the project.
  • To ensure future commits remain clean and free from unnecessary formatting diffs.

Details

  • Added Spotless configuration to the Gradle build setup.
  • Defined formatting rules for Java, JSON, gradle and markdown files.
  • Applied formatting to all project files using ./gradlew spotlessApply.
  • The configuration and reformat were previously reviewed separately to allow a clear review process.

Verification

  • Run ./gradlew spotlessCheck — all files should pass.
  • Project builds and runs successfully after applying the formatting.

Next steps

  • Going forward, Spotless will automatically enforce formatting during builds or CI checks.

@BartoszLitwiniuk BartoszLitwiniuk changed the title Spotless code format [DRAFT] Spotless code format Feb 5, 2025
@BartoszLitwiniuk BartoszLitwiniuk changed the title [DRAFT] Spotless code format Introduce Spotless and apply formatting to entire project Oct 15, 2025
@BartoszLitwiniuk

Copy link
Copy Markdown
Collaborator Author

This PR can be changed to 'Ready for review' when #191 will be merged to this branch.

@BartoszLitwiniuk BartoszLitwiniuk marked this pull request as ready for review January 19, 2026 19:48

@gm4sl gm4sl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This series of 55 commits is rather hard to review. I wouldn't expect there to be merge commits, typo fixes, and so forth. Would expect a commit to add the formatter, a separate commit that runs the formatter against the code, and perhaps one more to tweak the workflows configuration.

@BartoszLitwiniuk BartoszLitwiniuk merged commit 76b0805 into master Mar 11, 2026
3 checks passed
@BartoszLitwiniuk BartoszLitwiniuk deleted the code-auto-format branch March 11, 2026 18:22
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