Package: routine-update Severity: wishlist X-Debbugs-Cc: ni...@thykier.net
The `debputy reformat` tool can be run on all packages, apply their maintainer's style or gracefully back out if none can be detected. The full command your use case would be something like:
debputy reformat \ --auto-fix \ --unknown-or-unsupported-style-is-ok \ --no-linter-exit-code > /dev/nullIn many cases, it would do nothing. But if the maintainer has selected a style via `X-Style` or via the salsa-ci pipeline, then that command will apply the style. You can use `--linter-exit-code` (instead of `--no-linter-exit-code`) if you want to use the exit code to tell if something was changed or not.
You can try the command on `debhelper` (has a style) vs. `phalanx` (does not have a style) to see the difference.
Unlike `wrap-and-sort`, it does not rewrite the style by default. Though if that behavior is desired, `debputy reformat --style black` is an option (though I would recommend that routine-update then add the `X-Style: black` field instead, so `debputy reformat` does the right thing out of the box).
Dependencies: `apt-get install -y debputy-lsp`
OpenPGP_signature.asc
Description: OpenPGP digital signature