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(String runId,
Path shellcheckBinary,
List<String> args,
List<Path> scriptsToCheck,
Path capturedStdout,
Path capturedStderr)
Runs the provided shellcheck binary capturing its output and return code.
|
public static final String VERSION
public static Shellcheck.Result run(String runId, Path shellcheckBinary, List<String> args, List<Path> scriptsToCheck, Path capturedStdout, Path capturedStderr) throws IOException, InterruptedException
runId - a string label used to mark the output stdout/stderr files for the run.shellcheckBinary - the binary for shellcheckargs - the command line args to be passed to the shellcheck binaryscriptsToCheck - the list of arguments to shellcheckcapturedStdout - the path where the captured stdout should be redirectedcapturedStderr - the path where the captured stderr should be redirectedIOException - if something goes bad doing io things (writing files etc...)InterruptedException - if the thread gets interrupted while waiting for shellcheck to finishCopyright © 2020–2023 Marco Nicolini. All rights reserved.