)]}'
{
  "commit": "288f62598dfd5a97b76138359a40c3722b055868",
  "tree": "dd2d880a46759b30ee9b1e9c66fd2637c3173056",
  "parents": [
    "1f4b5910edd9adb58c60ffec781ef4df6fcda1bb"
  ],
  "author": {
    "name": "Martijn Dashorst",
    "email": "dashorst@apache.org",
    "time": "Sun Nov 08 13:03:29 2026 +0100"
  },
  "committer": {
    "name": "Martijn Dashorst",
    "email": "dashorst@apache.org",
    "time": "Sun Nov 08 13:12:44 2026 +0100"
  },
  "message": "Check the Java code format in the build with Spotless\n\nWicket had a code style, but nothing in the build applied or checked it.\nThe Eclipse settings in wicket-eclipse-settings dated from an old Eclipse\nrelease, IntelliJ users had no profile at all, and formatting drifted with\nevery contributor\u0027s IDE.\n\nThe format is now defined by one Eclipse formatter profile,\ncodestyle/wicket-formatter.xml. Spotless runs spotless:check in every\nmodule during the build, so a misformatted Java source fails the build\nwith a hint to run mvn spotless:apply. The profile was derived from the\nexisting settings and tuned against the code base, so that applying it\nchanges as little as possible:\n\n- Javadoc, block and line comments are not formatted. Reflowing them\n  accounted for a large part of the changes and broke \u003cpre\u003e examples.\n- Line breaks put in by hand are kept rather than joined.\n- The settings newer Eclipse releases added, which the old profile\n  lacked, are set to what the code already does: wrapped method chains,\n  text blocks and one-line bodies are left as written.\n- The line length goes from 100 to 120 columns, which documents the code\n  as it is rather than wrapping over 2,000 lines.\n\nSpotless takes line endings from .gitattributes. The profile is found\nthrough three small profiles that look for the codestyle directory in\nthe module or up to two levels above it, so the check also works when\nMaven runs inside a module.\n\nEclipse users can import the profile. IntelliJ IDEA users get identical\nresults with the Adapter for Eclipse Code Formatter plugin pointing at\nthe same file. .editorconfig carries the basics for other editors. The\nREADME explains the setup, and .git-blame-ignore-revs lets git blame\nskip the reformat commit.\n\nAn application that builds Wicket from source sees a build failure on\nmisformatted Java code. Nothing changes for applications that use\nWicket.\n\nGitHub issue #1867\n\nGenerated-by: Claude Code (Claude Opus 5.5)\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fae1bee4c8f9aaaea99c7dce61899295b996f891",
      "new_mode": 33188,
      "new_path": ".editorconfig"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cd058275a982c6ce98c2d38803d88ba7f7656a27",
      "new_mode": 33188,
      "new_path": ".git-blame-ignore-revs"
    },
    {
      "type": "modify",
      "old_id": "a348ee0c09d0bf32ea8bd7143941ec7a49b97cdf",
      "old_mode": 33188,
      "old_path": "AGENTS.md",
      "new_id": "cad46c400a4d247263466c54a739d5ec8ffeb4b8",
      "new_mode": 33188,
      "new_path": "AGENTS.md"
    },
    {
      "type": "modify",
      "old_id": "6524308b5ae56e19eb67be242000f1a1dae0c307",
      "old_mode": 33188,
      "old_path": "README.md",
      "new_id": "b146fb94675aa3bcfedc483a1cc5847f2fa7ab99",
      "new_mode": 33188,
      "new_path": "README.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8fd871a4ef83338e31924ee64944bd3b92bd1bf3",
      "new_mode": 33188,
      "new_path": "codestyle/wicket-formatter.xml"
    },
    {
      "type": "modify",
      "old_id": "7cab14ed98ac0337934251a31b2ea5cb556ba2d8",
      "old_mode": 33188,
      "old_path": "pom.xml",
      "new_id": "b31095d2d2b4711ea5b69a399480ed76d2da3f9a",
      "new_mode": 33188,
      "new_path": "pom.xml"
    }
  ]
}
