Format application web resources with Spotless#10023
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10023 +/- ##
============================================
+ Coverage 59.55% 61.03% +1.48%
- Complexity 3812 4091 +279
============================================
Files 677 706 +29
Lines 23248 23772 +524
Branches 1500 1564 +64
============================================
+ Hits 13846 14510 +664
+ Misses 8764 8515 -249
- Partials 638 747 +109 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Adds a Spotless
webResourcesformat in the application module for server-rendered web assets:src/main/resources/templates/**/*.htmlsrc/main/resources/static/styles/**/*.csssrc/main/resources/static/js/**/*.jsThe formatter uses Prettier with shared
tabWidthandprintWidthsettings, letting Prettier infer the parser from each file extension. This keeps template, CSS, and JavaScript formatting checks under the owning application module instead of the repository root.This PR also applies the formatter to the existing application web resources.
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
Validated with:
AI-assisted contribution: OpenAI Codex was used to help inspect the existing Spotless configuration, update the Gradle setup, run validation, and prepare this PR.
Does this PR introduce a user-facing change?