ammachado opened a new pull request, #1661:
URL: https://github.com/apache/maven-mvnd/pull/1661

   ## Problem
   
   Project names are shown in blue and the running Maven goal in green during a 
build. The name column width is a fixed `%-Ns ` format sized to the **90th 
percentile** of artifactId lengths 
(`ClientDispatcher.artifactIdLength90thPercentile`). Because 
`String.format("%-Ns", name)` only pads (never truncates), the ~10% of projects 
with longer-than-column names overflow and push the green goal text out of 
column alignment.
   
   ## Change
   
   Size the column to the **longest** artifactId 
(`ClientDispatcher.maxArtifactIdLength`) so every name fits within the padded 
column and the goal column stays aligned. No client-side change is needed: 
`TerminalOutput` builds its format string from this width.
   
   ### Trade-off
   This trades a narrower column for guaranteed alignment: a single unusually 
long module name now widens the column for every row. This was a deliberate 
choice over truncation.
   
   ## Tests
   
   - Added a unit test for `maxArtifactIdLength` (empty, single, and 
mixed-length cases).
   - `daemon` module compiles and `ClientDispatcherTest` passes.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to