Skip to content

Add Spotless plugin to enforce code formatting and configure CI pipel…#5

Merged
mattknatt merged 1 commit into
mainfrom
feat/ci
May 5, 2026
Merged

Add Spotless plugin to enforce code formatting and configure CI pipel…#5
mattknatt merged 1 commit into
mainfrom
feat/ci

Conversation

@mattknatt

@mattknatt mattknatt commented May 5, 2026

Copy link
Copy Markdown
Owner

…ine with Maven build and Spotless checks

Summary by CodeRabbit

  • Chores
    • Established an automated continuous integration pipeline that validates builds on every code push and pull request
    • Added code quality and formatting checks to enforce consistent standards during the build process
    • Cleaned up unused code dependencies

@coderabbitai

coderabbitai Bot commented May 5, 2026

Copy link
Copy Markdown

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

A GitHub Actions CI workflow is added to enforce code formatting via Spotless, a Maven plugin is configured to check and apply formatting rules across Java source files, and an unused import is removed to comply with the formatting standards.

Changes

Spotless Code Formatting Setup

Layer / File(s) Summary
Plugin Configuration
pom.xml
Spotless Maven plugin (v2.46.1) is configured to remove unused imports, trim trailing whitespace, and format annotations across src/main/java and src/test/java.
CI Integration
.github/workflows/ci.yml
GitHub Actions workflow CI-pipeline runs on pushes to main and pull requests, executing Maven clean verify and spotless:check with Java 25 (Temurin) and Maven caching.
Code Cleanup
src/test/java/.../LlmClientTest.java
Unused LlmUnavailableException import is removed to comply with Spotless enforcement rules.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Hoppy checks hop into the CI,
Spotless rules make code so spry,
Imports unused fade away,
Formatting shines in GitHub's day!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly addresses the main changes: adding Spotless plugin for code formatting and configuring CI pipeline with Maven checks.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ci

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mattknatt
mattknatt merged commit e491c45 into main May 5, 2026
1 of 2 checks passed
@mattknatt
mattknatt deleted the feat/ci branch May 5, 2026 07:07
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.

1 participant