pub struct SarifTool {
pub name: String,
pub command: Vec<String>,
pub watch: Vec<String>,
}Expand description
An external tool that emits SARIF 2.1.0 output (used with --engine sarif).
Configured via [[rules.sarif-tools]] in .normalize/config.toml.
Fields§
§name: StringDisplay name for this tool (used as source in DiagnosticsReport).
command: Vec<String>Command to run. {root} is replaced with the project root path.
Example: ["npx", "eslint", "--format", "json", "{root}"]
watch: Vec<String>Glob patterns (relative to project root) for files this tool watches.
When set, normalize rules run caches this tool’s SARIF output keyed by the
maximum mtime of all matching files. On warm runs where no watched file has
changed, the tool is skipped and results are served from cache.
If empty (the default), the tool always re-runs (no caching).
Example: ["**/*.py"] for a Python linter, ["**/*.ts"] for a TypeScript checker.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SarifTool
impl<'de> Deserialize<'de> for SarifTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SarifTool
impl JsonSchema for SarifTool
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SarifTool
impl RefUnwindSafe for SarifTool
impl Send for SarifTool
impl Sync for SarifTool
impl Unpin for SarifTool
impl UnsafeUnpin for SarifTool
impl UnwindSafe for SarifTool
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
Mutably borrows from an owned value. Read more