mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
23 lines
639 B
Rust
23 lines
639 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_RUBY_WIP_DATABASE")
|
|
.expect("CODEQL_EXTRACTOR_RUBY_WIP_DATABASE not set");
|
|
|
|
autobuilder::Autobuilder::new("ruby", PathBuf::from(database))
|
|
.include_extensions(&[".rb", ".erb", ".gemspec"])
|
|
.include_globs(&["**/Gemfile"])
|
|
.exclude_globs(&["**/.git"])
|
|
.size_limit("5m")
|
|
.run()
|
|
}
|