Skip to content

Apply Language Engine formatter under style=intellij#11

Closed
traceyyoshima wants to merge 1 commit into
trunkfrom
engine/le-format-2026-05-21
Closed

Apply Language Engine formatter under style=intellij#11
traceyyoshima wants to merge 1 commit into
trunkfrom
engine/le-format-2026-05-21

Conversation

@traceyyoshima

Copy link
Copy Markdown
Owner

Summary

Single bulk apply of the Language Engine's IntelliJ-style format profile across the kafka source tree. Pairs with the IntelliJ-real control draft (intellij-formatting) so each PR shows its formatter's diff vs trunk@164256f127 and the two outputs can be eyeballed side-by-side.

What was applied

Format profile: IntelliJ.defaults().toStyle() — the Language Engine's projection of IntelliJ's Java Code Style → Default settings. Wired via:

Apply stats

  • Files evaluated: 5,779
  • Files written: 3,101
  • Already idempotent (no change): 2,678
  • Failures: 0
  • Envelope rebuild after apply: 23.5s

Net byte delta vs trunk: −470 bytes (99,702 insertions / 100,172 deletions).

Comparison with the IntelliJ control

Control branch (intellij-formatting): 1 commit on trunk@164256f12 with IntelliJ's reformat applied. Reports ~4,086 files changed, +177,944 / −180,083 bytes.

This LE-format PR:

  • Same base commit
  • Different formatter (LE-IntelliJ)
  • ~985 fewer files in the changed set
  • Smaller absolute insertion/deletion counts

Direct file-pair comparison is best done by checking individual files in both PRs side-by-side; the difference set is where LE diverges from IntelliJ's reformat.

Draft

Filed as draft — not a candidate for merge, this is an output snapshot for review.

Single bulk apply of the Language Engine's IntelliJ-style format
profile across the kafka source tree. Pairs with the IntelliJ-real
control branch `intellij-formatting` for side-by-side comparison
of LE's IntelliJ output against IntelliJ's own reformat.

Stats: 3101 files written, 0 failures, 2678 already-idempotent
files skipped (no_change).
traceyyoshima added a commit that referenced this pull request May 22, 2026
Single bulk apply of the Language Engine's IntelliJ-style format
profile across the kafka source tree. Pairs with the IntelliJ-real
control branch `intellij-formatting` for side-by-side comparison.

Engine state at apply time includes the following format fixes
landed against the language-engine repo:

  Pre-PR #11:
  - PR apache#275 multi-line // comment indent group
  - PR apache#276 BLANK_LINES_AROUND_CLASS + sibling no-op repair
  - PR apache#277 string-concat chain anchor preservation
  - PR apache#279 forward style through apply routes
  - PR apache#281 Result-tab line-number alignment
  - PR apache#282 spaces after return / throw / yield / instanceof
  - PR apache#283 chain-dot postfix preservation
  - PR apache#284 BlankLines sibling minimum.* conversion
  - PR apache#285 chain-dot single-anchor (N=1) preservation
  - PR apache#286 string-concat chain partial-cascade fix
  - PR apache#287 method-decl param re-align for misaligned source
  - PR apache#288 annotation-in-array-init indent

  Post-original-PR #11 (new in this re-apply):
  - PR apache#289 partial-cascade post-rewrite-anchor (4 shape fixes:
    chain-dot postfix follow-on, MI/NewClass close-paren cascade,
    ternary continuation, lambda body continuation)

Stats: 3101 files written, 0 failures, 2678 already-idempotent
files skipped (no_change). Corpus byte delta vs trunk: -510 bytes
(106275 insertions / 106785 deletions).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant