jhaabhijeet864 commented on PR #4082:
URL:
https://github.com/apache/incubator-kie-tools/pull/4082#issuecomment-7304931024
Thanks for the feedback and suggestions @drccrd and @tkobayas. I've updated
the branch (`fix/4054-indent-if-else-rhs`) with:
1. Fixes for all three Copilot review findings:
- Standalone next-line `{` (Allman style) aligns with its conditional
header's base depth.
- Enclosing unbraced control contexts are preserved across nested braced
bodies using `blockDepth` tracking.
- Indentation restores to the root baseline across all completed outer
conditionals when followed by sibling statements.
2. `TokenSpacing.rhsNeedsSpace` now preserves standard Java space before `(`
for control keywords (`if`, `for`, `while`, `switch`, `catch`, `synchronized`,
`return`, `throw`, `assert`) while keeping method calls tight.
3. Extended unbraced body indentation to `for` and `while` loops.
Regarding multi-line condition wrapping (> 110 chars), that touches global
expression/line-folding logic rather than consequence statement indentation, so
let's track that in a dedicated follow-up issue to keep this PR focused and
easy to review.
All formatter tests pass with new test cases covering these scenarios.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]