Enum Class OutputMode
- All Implemented Interfaces:
Serializable,Comparable<OutputMode>,Constable
The selected mode determines both the emitted header and the per-method output representation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEmits output in comma-separated value format.Emits GitHub Actions workflow commands for inline PR annotations.Emits output in a human-readable plain text format.Emits output in SARIF 2.1.0 JSON format. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputModeReturns the enum constant of this class with the specified name.static OutputMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CSV
Emits output in comma-separated value format.Fields are escaped according to RFC 4180 rules implemented by
OutputEmitter. -
PLAIN
Emits output in a human-readable plain text format. -
SARIF
Emits output in SARIF 2.1.0 JSON format.Results are buffered in memory and serialized to a single JSON document after all source files have been scanned. Security-relevant methods receive SARIF level
noteand asecurity-severityscore derived from the AI taxonomy tag; rule objects carry aproperties.tagsarray for the GitHub Code Scanning tag filter.Security-only by default: SARIF output is intended for consumption by GitHub Code Scanning and equivalent security tooling. These consumers expect actionable security findings, not an exhaustive inventory of every test method. Selecting this mode therefore applies the security-only filter automatically: only methods classified as security-relevant are emitted. Pass
-include-non-securityon the command line (or setincludeNonSecurity: truein the YAML configuration file) to include all methods in the SARIF document.- See Also:
-
GITHUB_ANNOTATIONS
Emits GitHub Actions workflow commands for inline PR annotations.Only security-relevant methods produce output. Each method becomes one
::noticeor::warningworkflow command that GitHub Actions intercepts and displays as an inline annotation on the PR diff. The level iswarningwhenai_interaction_score >= 0.8(potential placebo test) andnoticeotherwise.Non-security methods produce no output. This mode does not require a GitHub Advanced Security licence, unlike SARIF upload via
upload-sarif.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-