coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

`ci`: Run shellcheck and shfmt on shell scripts in the `util` directory

Open Joining7943 opened this issue 3 years ago • 5 comments

Both, shellcheck and shfmt are well established tools to lint and format shell scripts. If we would run these tools in a ci job on all the scripts in the util directory, we would improve the readabiltiy (shfmt) and reduce common errors (shellcheck) of shell scripts.

Joining7943 avatar Apr 19 '23 17:04 Joining7943

great idea!

sylvestre avatar Apr 20 '23 07:04 sylvestre

Yeah I like it too! I thought we already had shellcheck, but it seems like I just suggested adding it to the CI (https://github.com/uutils/coreutils/pull/3013), but seems like it wasn't actually implemented.

tertsdiepraam avatar Apr 20 '23 07:04 tertsdiepraam

Great!

Joining7943 avatar Apr 20 '23 14:04 Joining7943

Hi, I'd love to do some work to add this workflow.

starccy avatar Jul 13 '23 07:07 starccy

@starccy: sure, go ahead :)

cakebaker avatar Jul 13 '23 07:07 cakebaker