pub enum OutputFormat {
Show 13 variants
Lines,
Json,
Position,
Tsc,
Cargo,
Sarif,
Ktlint,
Shellcheck,
Rubocop,
Phpcs,
Credo,
Sqlfluff,
Msbuild,
}Expand description
How to parse the tool’s diagnostics into findings.
A fieldless enum rather than a string: parse_output dispatches on it, so
a misspelling is a compile error at the definition site instead of a
runtime “no parser for output format” surfacing only when the tool runs.
No #[non_exhaustive] - this crate is the only consumer, and the
wildcard arm it forces is exactly the silent-fallback hole the enum
exists to close.
Variants§
Implementations§
Source§impl OutputFormat
impl OutputFormat
Sourcepub fn skips_unmatched_input(self) -> bool
pub fn skips_unmatched_input(self) -> bool
Whether this format’s parser skips input it does not recognise instead of erroring on it.
The skip parsers exist because their tools interleave chatter among
the diagnostics (Go’s # pkg headers, MSBuild’s restore noise). The
price is that a run whose every line is chatter of a new shape - an
SDK error, a rejected invocation - parses as zero findings on a
non-empty stream, which is why the runner treats that combination as
Unavailable for these formats and no others. Every other format
errors on input it cannot parse, so the hole cannot open there.
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
Source§fn clone(&self) -> OutputFormat
fn clone(&self) -> OutputFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OutputFormat
Source§impl Debug for OutputFormat
impl Debug for OutputFormat
impl Eq for OutputFormat
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnsafeUnpin for OutputFormat
impl UnwindSafe for OutputFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.