From abfa65c2c1cd2140934ef93c438540557afc4a2c Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Fri, 6 Oct 2023 02:23:29 +0900 Subject: [PATCH] ignore/types: add *.sarif for SARIF format files [SARIF] is a format for reporting static analysis results. It is [used by GitHub CodeQL][GH] for example. Here are some samples from Microsoft's VSCode extension: https://github.com/microsoft/sarif-vscode-extension/tree/main/samples The SARIF format is built on top of JSON. [SARIF]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/csprd01/sarif-v2.1.0-csprd01.html [GH]: https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning PR #2620 --- crates/ignore/src/default_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 451bacfc..99749ddd 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -112,7 +112,7 @@ pub const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["jinja"], &["*.j2", "*.jinja", "*.jinja2"]), (&["jl"], &["*.jl"]), (&["js"], &["*.js", "*.jsx", "*.vue", "*.cjs", "*.mjs"]), - (&["json"], &["*.json", "composer.lock"]), + (&["json"], &["*.json", "composer.lock", "*.sarif"]), (&["jsonl"], &["*.jsonl"]), (&["julia"], &["*.jl"]), (&["jupyter"], &["*.ipynb", "*.jpynb"]),