diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-10 08:54:02 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-11 10:58:29 +0100 |
commit | b25131ed65496c9cf0f616f761517590aa16d120 (patch) | |
tree | bf0076fe1dc29e87ac4ea7b7b46ecd1339d47173 /Cargo.toml | |
parent | b7f6276b1d3b9678f9cafa377ec8307845c3446b (diff) |
Add feature: script linting
This patch adds script linting via a configurable script.
With this patch, the configuration can point to a script or program that
gets the packaging script on STDIN and might exit with a nonzero value
on error.
The simplest script I can think of that adds value is:
#!/bin/bash
shellcheck -
to run the packaging script through shellcheck.
stdout and stderr of the linting script are printed in case of non-zero
return value.
Linting can be disabled by not setting the script in the config or by
passing a commandline flag to skip linting (a warning will be printed in
this case).
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ thiserror = "1" rand = "=0.4.3" url = { version = "2", features = ["serde"] } -tokio = { version = "0.2", features = ["macros", "fs"] } +tokio = { version = "0.2", features = ["macros", "fs", "process", "io-util"] } shiplift = { git = "https://github.com/softprops/shiplift", branch = "master" } |