-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): support codeql query format (#677)
- Loading branch information
Showing
7 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/// | ||
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY | ||
/// | ||
use crate::runners::CommandType; | ||
|
||
#[inline] | ||
pub fn set_args( | ||
mut cmd: std::process::Command, | ||
file_path: &std::path::Path, | ||
) -> std::process::Command { | ||
cmd.arg("query"); | ||
cmd.arg("format"); | ||
cmd.arg("-i"); | ||
cmd.arg(file_path); | ||
cmd | ||
} | ||
|
||
pub const COMMANDS: [CommandType; 1] = [CommandType::Direct("codeql")]; | ||
|
||
#[cfg(test)] | ||
mod test_codeql_query_format {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "../tool.schema.json", | ||
"binary": "codeql", | ||
"categories": ["formatter"], | ||
"commands": { | ||
"query:format": { | ||
"arguments": ["query", "format", "-i", "$PATH"], | ||
"description": "Format queries and libraries with CodeQL", | ||
"homepage": "https://docs.github.com/en/code-security/codeql-cli/codeql-cli-manual/query-format" | ||
} | ||
}, | ||
"description": "Format queries and libraries with CodeQL", | ||
"homepage": "https://docs.github.com/en/code-security/codeql-cli/codeql-cli-manual", | ||
"languages": ["codeql"], | ||
"packages": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters