Skip to content

Commit 33e89ea

Browse files
committed
Address review comments
1 parent 9a2b7ba commit 33e89ea

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

unified/extractor/src/extractor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod swift;
99

1010
#[derive(Args)]
1111
pub struct Options {
12-
/// Sets a custom source achive folder
12+
/// Sets a custom source archive folder
1313
#[arg(long)]
1414
source_archive_dir: PathBuf,
1515

@@ -23,15 +23,15 @@ pub struct Options {
2323
}
2424

2525
pub fn run(options: Options) -> std::io::Result<()> {
26-
codeql_extractor::extractor::set_tracing_level("ql");
26+
codeql_extractor::extractor::set_tracing_level("unified");
2727

2828
let extractor = simple::Extractor {
2929
prefix: "unified".to_string(),
3030
languages: vec![
3131
swift::language_spec(),
3232
],
3333
trap_dir: options.output_dir,
34-
trap_compression: trap::Compression::from_env("CODEQL_QL_TRAP_COMPRESSION"),
34+
trap_compression: trap::Compression::from_env("CODEQL_EXTRACTOR_UNIFIED_OPTION_TRAP_COMPRESSION"),
3535
source_archive_dir: options.source_archive_dir,
3636
file_lists: vec![options.file_list],
3737
};

unified/extractor/src/generator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ pub struct Options {
1515
}
1616

1717
pub fn run(options: Options) -> std::io::Result<()> {
18-
codeql_extractor::extractor::set_tracing_level("ql");
18+
codeql_extractor::extractor::set_tracing_level("unified");
1919

2020
let languages = vec![Language {
2121
name: "Swift".to_owned(),
2222
node_types: tree_sitter_swift::NODE_TYPES,
2323
desugar: None,
2424
}];
2525

26-
generate(languages, options.dbscheme, options.library, "run ql/unified/scripts/create-extractor-pack.sh")
26+
generate(languages, options.dbscheme, options.library, "run unified/scripts/create-extractor-pack.sh")
2727
}

unified/ql/lib/unified.dbscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// CodeQL database schema for Swift
22
// Automatically generated from the tree-sitter grammar; do not edit
3-
// To regenerate, run ql/unified/scripts/create-extractor-pack.sh
3+
// To regenerate, run unified/scripts/create-extractor-pack.sh
44

55
/*- Files and folders -*/
66

0 commit comments

Comments
 (0)