Skip to content

Consistent code formatting for shell scripts

Clara Engler requested to merge cve/arti:shfmt into main

Currently, there is no consistency within the style of shell scripts. This inconsistency even leads to the mixture of tabs and spaces for indention within the same file. In order to fix that, this merge request introduces a new tool: shfmt.

The merge requests itself is compose of three commits:

  • The first formats all scripts using shfmt
  • The second introduces a new script called maint/check_shfmt, that checks for inconsistencies
  • The third implements a CI for that

Merge request reports

Loading