public class Shellcheck extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Shellcheck.Result
The results of a shellcheck run.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION
The version of shellcheck that is embedded in the plugin jar.
|
| Modifier and Type | Method and Description |
|---|---|
static Shellcheck.Result |
run(Path shellcheckBinary,
List<String> args,
Path outdir,
List<Path> scriptsToCheck)
Runs the provided shellcheck binary capturing its output and return code.
|
public static final String VERSION
public static Shellcheck.Result run(Path shellcheckBinary, List<String> args, Path outdir, List<Path> scriptsToCheck) throws IOException, InterruptedException
shellcheckBinary - the binary for shellcheckoutdir - where the output files will be storedargs - the command line args to be passed to the shellcheck binaryscriptsToCheck - the list of arguments to shellcheckIOException - if something goes bad doing io things (writing files etc...)InterruptedException - if the thread gets interrupted while waiting for shellcheck to finishCopyright © 2020–2021 Marco Nicolini. All rights reserved.