Skip to content

Commit df377a4

Browse files
authored
update agents.md (#5612)
Change formatting command from spotless to formatter Updated Maven formatting commands to use 'formatter' instead of 'spotless'.
1 parent f92d108 commit df377a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Why this is mandatory
360360
2. **Build sanity (fast, skip tests)**
361361
* `mvn -T 1C -o -Dmaven.repo.local=.m2_repo -Pquick clean install | tail -200`
362362
3. **Format (Java, imports, XML)**
363-
* `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C spotless:apply`
363+
* `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C formatter:format impsort:sort xml-format:xml-format`
364364
4. **Targeted tests (tight loops)**
365365
* Module: `mvn -o -Dmaven.repo.local=.m2_repo -pl <module> verify | tail -500`
366366
* Class: `mvn -o -Dmaven.repo.local=.m2_repo -pl <module> -Dtest=ClassName verify | tail -500`
@@ -467,7 +467,7 @@ When writing complex features or significant refactors, use an ExecPlan (as desc
467467
* **PIOSEE first:** restate Problem, gather Information, list Options; then Select, Execute, Evaluate.
468468
* **Plan:** small, verifiable steps; keep one `in_progress`, or follow PLANS.md (ExecPlans)
469469
* **Change:** minimal, surgical edits; keep style/structure consistent.
470-
* **Format:** `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C spotless:apply`
470+
* **Format:** `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C formatter:format impsort:sort xml-format:xml-format`
471471
* **Compile (fast):** `mvn -o -Dmaven.repo.local=.m2_repo -pl <module> -am -Pquick clean install | tail -500`
472472
* **Test:** start smallest (class/method → module). For integration, run module `verify`.
473473
* **Triage:** read reports; fix root cause; expand scope only when needed.
@@ -539,7 +539,7 @@ Assertions are executable claims about what must be true. Use **temporary tripwi
539539
540540
* Always run before finalizing:
541541
542-
* `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C spotless:apply`
542+
* `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C formatter:format impsort:sort xml-format:xml-format`
543543
* Style: no wildcard imports; 120‑char width; curly braces always; LF endings.
544544
545545
### Import hygiene (always)
@@ -574,7 +574,7 @@ Do **not** modify existing headers’ years.
574574
575575
## Pre‑Commit Checklist
576576
577-
* **Format:** `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C spotless:apply`
577+
* **Format:** `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C formatter:format impsort:sort xml-format:xml-format`
578578
* **Compile (fast path):** `mvn -T 1C -o -Dmaven.repo.local=.m2_repo -Pquick clean install | tail -200`
579579
* **Tests (targeted):** `mvn -o -Dmaven.repo.local=.m2_repo -pl <module> verify | tail -500` (broaden as needed)
580580
* **Reports:** zero new failures in Surefire/Failsafe, or explain precisely.

0 commit comments

Comments
 (0)