autofix.ci - #38
Conversation
…EADME - Introduce `autofix.ci` workflow to apply Spotless auto-formatting on pushes and pull requests. - Configure `spotless-maven-plugin` in `pom.xml` to enforce Google's Java format standards. - Update README with additional IDE settings for seamless build and reload.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds editor/formatter configs, Spotless and Prettier tooling, a GitHub autofix workflow, IDE config updates, and widespread HTML/CSS/Markdown formatting changes across templates and docs; no API/public Java signatures were modified. Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub Actions
participant Repo as Repository
participant Maven as Maven/Spotless
participant Bun as Bun/Node
participant Prettier as Prettier
participant Autofix as autofix-ci/action
GitHub->>Repo: PR or push to main triggers workflow
Repo->>Maven: run ./mvnw spotless:apply / check
Maven-->>Repo: formatting results
Repo->>Bun: setup Bun, install deps (bun install)
Bun->>Prettier: bun run format (prettier + plugin)
Prettier-->>Repo: formatted files
Repo->>Autofix: run autofix-ci/action (pinned SHA)
Autofix-->>Repo: create/update PR/commit with fixes
GitHub-->>Repo: workflow completes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
- Add `.prettierrc.json` to configure Prettier with `prettier-plugin-tailwindcss` and set custom print width. - Update `package.json` with Prettier scripts for formatting and checking HTML files. - Refactor HTML templates for consistent theming and improved readability, aligning with Prettier's formatting. - Enhance `autofix.yml` workflow to include Bun for dependency installation and formatting.
- Remove `.idea/biome.xml` and the Biome plugin from `externalDependencies.xml`. - Add `.editorconfig` for consistent formatting across IDEs and editors. - Update `.vscode/extensions.json` to include Prettier's VSCode extension.
…lues for Thymeleaf tags
# Conflicts: # src/main/java/codes/yam/contacts/ContactController.java # src/main/resources/templates/contacts/index.html # src/main/resources/templates/fragments/contact-list-rows.html # src/main/resources/templates/layout.html
There was a problem hiding this comment.
🧹 Nitpick comments (1)
README.md (1)
142-142: Minor grammar suggestion: use "full-page" as a compound adjective.Consider hyphenating "full-page" when used as a compound modifier before "reloads".
📝 Suggested fix
-| [`hono-web1`](https://github.com/yamcodes/contact.app/tree/hono-web1) | Hypermedia-Driven Application | Server-rendered HTML using links and forms. Full page reloads. Pure hypermedia, no client-side JS. | +| [`hono-web1`](https://github.com/yamcodes/contact.app/tree/hono-web1) | Hypermedia-Driven Application | Server-rendered HTML using links and forms. Full-page reloads. Pure hypermedia, no client-side JS. |🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@README.md` at line 142, Update the README table row for `hono-web1` to use the compound adjective "full-page" before "reloads" (change "Full page reloads" to "Full-page reloads") so the description reads "Server-rendered HTML using links and forms. Full-page reloads. Pure hypermedia, no client-side JS." Locate the table row containing the `hono-web1` link and edit that cell accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@README.md`:
- Line 142: Update the README table row for `hono-web1` to use the compound
adjective "full-page" before "reloads" (change "Full page reloads" to "Full-page
reloads") so the description reads "Server-rendered HTML using links and forms.
Full-page reloads. Pure hypermedia, no client-side JS." Locate the table row
containing the `hono-web1` link and edit that cell accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 53f5f8f0-2112-4ffe-80c5-8bd85efe02da
⛔ Files ignored due to path filters (1)
bun.lockis excluded by!**/*.lock
📒 Files selected for processing (25)
.coderabbit.yaml.editorconfig.github/workflows/autofix.yml.idea/biome.xml.idea/compiler.xml.idea/externalDependencies.xml.idea/inspectionProfiles/Project_Default.xml.prettierrc.json.vscode/extensions.jsonCLAUDE.mdREADME.mddocs/thymeleaf-fragments.mdpackage.jsonpom.xmlsrc/main/java/codes/yam/contacts/ContactController.javasrc/main/resources/static/css/input.csssrc/main/resources/templates/contacts/edit.htmlsrc/main/resources/templates/contacts/index.htmlsrc/main/resources/templates/contacts/new.htmlsrc/main/resources/templates/contacts/view.htmlsrc/main/resources/templates/error.htmlsrc/main/resources/templates/error/404.htmlsrc/main/resources/templates/fragments/contact-fields.htmlsrc/main/resources/templates/fragments/contact-list-rows.htmlsrc/main/resources/templates/layout.html
💤 Files with no reviewable changes (2)
- .idea/biome.xml
- .idea/compiler.xml
…EADME
autofix.ciworkflow to apply Spotless auto-formatting on pushes and pull requests.spotless-maven-plugininpom.xmlto enforce Google's Java format standards.Closes #3
Summary by CodeRabbit
Documentation
Chores