Class Shellcheck.Result

java.lang.Object
dev.dimlight.maven.plugin.shellcheck.Shellcheck.Result
Enclosing class:
Shellcheck

public static class Shellcheck.Result extends Object
The results of a shellcheck run.
  • Field Details

    • runId

      public final String runId
      Run id. A label to discriminate different shellcheck runs.
    • cmdLine

      public final List<String> cmdLine
      The actual command line that was ran to execute shellcheck, as a list. The content of the list is made up of:
      1. /the/path/to/shellcheck
      2. the options
      3. the actual file arguments
    • exitCode

      public final int exitCode
      The os exit code for the shellcheck invocation.
    • stdout

      public final Path stdout
      Path where the captured stdout has been redirected.
    • stderr

      public final Path stderr
      Path where the captured stderr has been redirected.
  • Constructor Details

    • Result

      public Result(String runId, List<String> cmdLine, int exitCode, Path stdout, Path stderr)
      Parameters:
      runId - the id of the run.
      cmdLine - the cmd line of the run.
      exitCode - the exit code of the shellcheck invocation.
      stdout - the path where stdout has been redirected.
      stderr - the path where stderr has been redirected.
  • Method Details

    • isNotOk

      public boolean isNotOk()
      Returns:
      true if the exit code is non-zero.