Class Shellcheck.Result
java.lang.Object
dev.dimlight.maven.plugin.shellcheck.Shellcheck.Result
- Enclosing class:
Shellcheck
The results of a shellcheck run.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe actual command line that was ran to execute shellcheck, as a list.final intThe os exit code for the shellcheck invocation.final StringRun id.final PathPath where the captured stderr has been redirected.final PathPath where the captured stdout has been redirected. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
runId
Run id. A label to discriminate different shellcheck runs. -
cmdLine
The actual command line that was ran to execute shellcheck, as a list. The content of the list is made up of:- /the/path/to/shellcheck
- the options
- the actual file arguments
-
exitCode
public final int exitCodeThe os exit code for the shellcheck invocation. -
stdout
Path where the captured stdout has been redirected. -
stderr
Path where the captured stderr has been redirected.
-
-
Constructor Details
-
Result
- 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.
-