mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
QL: switch to shared YAML extractor
This commit is contained in:
@@ -15,7 +15,7 @@ pub fn run(_: Options) -> std::io::Result<()> {
|
||||
|
||||
autobuilder::Autobuilder::new("ql", PathBuf::from(database))
|
||||
.include_extensions(&[".ql", ".qll", ".dbscheme", ".json", ".jsonc", ".jsonl"])
|
||||
.include_globs(&["**/qlpack.yml", "deprecated.blame"])
|
||||
.include_globs(&["deprecated.blame"])
|
||||
.size_limit("10m")
|
||||
.run()
|
||||
}
|
||||
|
||||
@@ -42,12 +42,6 @@ pub fn run(options: Options) -> std::io::Result<()> {
|
||||
node_types: tree_sitter_ql_dbscheme::NODE_TYPES,
|
||||
file_extensions: vec!["dbscheme".into()],
|
||||
},
|
||||
simple::LanguageSpec {
|
||||
prefix: "yaml",
|
||||
ts_language: tree_sitter_ql_yaml::language(),
|
||||
node_types: tree_sitter_ql_yaml::NODE_TYPES,
|
||||
file_extensions: vec!["yml".into()],
|
||||
},
|
||||
simple::LanguageSpec {
|
||||
prefix: "json",
|
||||
ts_language: tree_sitter_json::language(),
|
||||
|
||||
@@ -31,10 +31,6 @@ pub fn run(options: Options) -> std::io::Result<()> {
|
||||
name: "Dbscheme".to_owned(),
|
||||
node_types: tree_sitter_ql_dbscheme::NODE_TYPES,
|
||||
},
|
||||
Language {
|
||||
name: "Yaml".to_owned(),
|
||||
node_types: tree_sitter_ql_yaml::NODE_TYPES,
|
||||
},
|
||||
Language {
|
||||
name: "Blame".to_owned(),
|
||||
node_types: tree_sitter_blame::NODE_TYPES,
|
||||
|
||||
Reference in New Issue
Block a user