mirror of
https://github.com/github/codeql.git
synced 2026-04-18 21:44:02 +02:00
22 lines
633 B
Rust
22 lines
633 B
Rust
use std::env;
|
|
use std::path::PathBuf;
|
|
|
|
use clap::Args;
|
|
|
|
use codeql_extractor::autobuilder;
|
|
|
|
#[derive(Args)]
|
|
// The autobuilder takes no command-line options, but this may change in the future.
|
|
pub struct Options {}
|
|
|
|
pub fn run(_: Options) -> std::io::Result<()> {
|
|
let database = env::var("CODEQL_EXTRACTOR_QL_WIP_DATABASE")
|
|
.expect("CODEQL_EXTRACTOR_QL_WIP_DATABASE not set");
|
|
|
|
autobuilder::Autobuilder::new("ql", PathBuf::from(database))
|
|
.include_extensions(&[".ql", ".qll", ".dbscheme", ".json", ".jsonc", ".jsonl"])
|
|
.include_globs(&["deprecated.blame"])
|
|
.size_limit("10m")
|
|
.run()
|
|
}
|