mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Remove skip_path_resolution config variable (hardhoded to true).
This commit is contained in:
@@ -80,12 +80,6 @@ options:
|
|||||||
Collect flame graph data using the `tracing-flame` crate. To render a flame graph
|
Collect flame graph data using the `tracing-flame` crate. To render a flame graph
|
||||||
or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame
|
or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame
|
||||||
type: string
|
type: string
|
||||||
skip_path_resolution:
|
|
||||||
title: Skip path resolution
|
|
||||||
description: >
|
|
||||||
Skip path resolution. This is experimental, while we move path resolution from the extractor to the QL library.
|
|
||||||
type: string
|
|
||||||
pattern: "^(false|true)$"
|
|
||||||
extract_dependencies_as_source:
|
extract_dependencies_as_source:
|
||||||
title: Extract dependencies as source code
|
title: Extract dependencies as source code
|
||||||
description: >
|
description: >
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ pub struct Config {
|
|||||||
pub build_script_command: Vec<String>,
|
pub build_script_command: Vec<String>,
|
||||||
pub extra_includes: Vec<PathBuf>,
|
pub extra_includes: Vec<PathBuf>,
|
||||||
pub proc_macro_server: Option<PathBuf>,
|
pub proc_macro_server: Option<PathBuf>,
|
||||||
pub skip_path_resolution: bool,
|
|
||||||
pub extract_dependencies_as_source: bool,
|
pub extract_dependencies_as_source: bool,
|
||||||
pub force_library_mode: bool, // for testing purposes
|
pub force_library_mode: bool, // for testing purposes
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -283,11 +283,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
}
|
}
|
||||||
let cwd = cwd()?;
|
let cwd = cwd()?;
|
||||||
let (cargo_config, load_cargo_config) = cfg.to_cargo_config(&cwd);
|
let (cargo_config, load_cargo_config) = cfg.to_cargo_config(&cwd);
|
||||||
let resolve_paths = if cfg.skip_path_resolution {
|
let resolve_paths = ResolvePaths::No;
|
||||||
ResolvePaths::No
|
|
||||||
} else {
|
|
||||||
ResolvePaths::Yes
|
|
||||||
};
|
|
||||||
let (library_mode, library_resolve_paths) = if cfg.extract_dependencies_as_source {
|
let (library_mode, library_resolve_paths) = if cfg.extract_dependencies_as_source {
|
||||||
(SourceKind::Source, resolve_paths)
|
(SourceKind::Source, resolve_paths)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
skip_path_resolution: true
|
|
||||||
Reference in New Issue
Block a user