Ccodemod

codemod/abap-line-length-s103-mining

Wrap overlong ABAP full-line comments without rewriting executable statements.

abapline-lengthcommentstransformation
Public
0 executions

Run locally

npx codemod @codemod/abap-line-length-s103-mining

@codemod/abap-line-length-s103-mining

Wrap overlong ABAP full-line comments so they fit under a configurable line-length limit without rewriting executable statements.

Installation

bash

Usage

This codemod rewrites only full-line ABAP comments when they exceed maximumLineLength.

  • Rewrites lines that start with * or with " after indentation.
  • Splits long comment text at word boundaries and hard-wraps single words when needed.
  • Targets *.abap files recursively.
  • Preserves executable ABAP statements and end-of-line comments unchanged.
  • Skips comments that already fit within the configured maximum.

The transform uses a text-based rewrite because ABAP is not a parser-backed JSSG language in this package scaffold.

Development

bash

License

MIT

Ready to contribute?

Build your own codemod and share it with the community.