@codemod/abap-separate-statements-per-line
Rewrite ABAP source files so each period-terminated statement is placed on its own physical line.
Installation
bash
Usage
This codemod targets **/*.abap files and rewrites lines like:
abap
into:
abap
Behavior:
- Splits only on statement-ending periods that occur outside string literals and comments.
- Preserves indentation for every extracted statement.
- Leaves single-statement lines unchanged.
- Preserves decimals like
1.5, string content like'A.B', templates like|v1.2|, and trailing"comments.
Implementation note:
ABAP is not currently a parser-backed JSSG language, so this package uses a line-aware text rewrite rather than AST edits.
Development
bash
License
MIT