[INFO] cloning repository https://github.com/NORMAL-EX/fuck-shit-code
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NORMAL-EX/fuck-shit-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNORMAL-EX%2Ffuck-shit-code", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNORMAL-EX%2Ffuck-shit-code'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5e8f9d4fbcfb5770b3714d4b3a9946a5935dba67
[INFO] building NORMAL-EX/fuck-shit-code against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNORMAL-EX%2Ffuck-shit-code" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/NORMAL-EX/fuck-shit-code
[INFO] finished tweaking git repo https://github.com/NORMAL-EX/fuck-shit-code
[INFO] tweaked toml for git repo https://github.com/NORMAL-EX/fuck-shit-code written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/NORMAL-EX/fuck-shit-code on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/NORMAL-EX/fuck-shit-code already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tree-sitter v0.20.10
[INFO] [stderr]   Downloaded tree-sitter-java v0.20.2
[INFO] [stderr]   Downloaded tree-sitter-python v0.20.4
[INFO] [stderr]   Downloaded tree-sitter-javascript v0.20.4
[INFO] [stderr]   Downloaded tree-sitter-rust v0.20.4
[INFO] [stderr]   Downloaded tree-sitter-c v0.20.8
[INFO] [stderr]   Downloaded tree-sitter-c-sharp v0.20.0
[INFO] [stderr]   Downloaded tree-sitter-cpp v0.20.5
[INFO] [stderr]   Downloaded tree-sitter-typescript v0.20.5
[INFO] [stderr]   Downloaded tree-sitter-go v0.20.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6ec1b8e166eff18e7a122ba3ad45be014b2ae16b790adb787566d7166e5e8bd1
[INFO] running `Command { std: "docker" "start" "-a" "6ec1b8e166eff18e7a122ba3ad45be014b2ae16b790adb787566d7166e5e8bd1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6ec1b8e166eff18e7a122ba3ad45be014b2ae16b790adb787566d7166e5e8bd1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ec1b8e166eff18e7a122ba3ad45be014b2ae16b790adb787566d7166e5e8bd1", kill_on_drop: false }`
[INFO] [stdout] 6ec1b8e166eff18e7a122ba3ad45be014b2ae16b790adb787566d7166e5e8bd1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b0d5b566209fb35eb188ee442eb8ef89e0c3c44938ace6c54c2d3f5835c24f71
[INFO] running `Command { std: "docker" "start" "-a" "b0d5b566209fb35eb188ee442eb8ef89e0c3c44938ace6c54c2d3f5835c24f71", kill_on_drop: false }`
[INFO] [stderr]    Compiling cc v1.0.106
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling rayon-core v1.13.0
[INFO] [stderr]    Compiling portable-atomic v1.11.1
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling number_prefix v0.4.0
[INFO] [stderr]    Compiling console v0.15.11
[INFO] [stderr]    Compiling clap_builder v4.5.44
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling bstr v1.12.0
[INFO] [stderr]    Compiling rayon v1.11.0
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling indicatif v0.17.11
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling tree-sitter v0.20.10
[INFO] [stderr]    Compiling tree-sitter-c v0.20.8
[INFO] [stderr]    Compiling tree-sitter-javascript v0.20.4
[INFO] [stderr]    Compiling tree-sitter-python v0.20.4
[INFO] [stderr]    Compiling tree-sitter-go v0.20.0
[INFO] [stderr]    Compiling tree-sitter-c-sharp v0.20.0
[INFO] [stderr]    Compiling tree-sitter-java v0.20.2
[INFO] [stderr]    Compiling tree-sitter-typescript v0.20.5
[INFO] [stderr]    Compiling tree-sitter-cpp v0.20.5
[INFO] [stderr]    Compiling tree-sitter-rust v0.20.4
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling globset v0.4.16
[INFO] [stderr]    Compiling env_filter v0.1.3
[INFO] [stderr]    Compiling env_logger v0.11.8
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.45
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling clap v4.5.45
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling fuck-shit-code v1.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: method `analyze_with_excludes` is never used
[INFO] [stdout]    --> src/analyzer/analyzer.rs:112:12
[INFO] [stdout]     |
[INFO] [stdout]  34 | impl CodeAnalyzer {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn analyze_with_excludes(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `display_name` is never used
[INFO] [stdout]   --> src/common/language.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | impl LanguageType {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn display_name(&self) -> &str {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `supported_extensions` is never used
[INFO] [stdout]    --> src/common/language.rs:143:12
[INFO] [stdout]     |
[INFO] [stdout] 104 | impl LanguageDetector {
[INFO] [stdout]     | --------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 143 |     pub fn supported_extensions() -> Vec<&'static str> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_language` is never used
[INFO] [stdout]    --> src/i18n/mod.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout]  30 | impl Translator {
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn set_language(&mut self, language: Language) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `create_core_metrics` is never used
[INFO] [stdout]   --> src/metrics/mod.rs:65:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl MetricFactory {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn create_core_metrics(&self) -> Vec<Box<dyn Metric>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `weighted_score` is never used
[INFO] [stdout]   --> src/metrics/base.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl MetricResult {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn weighted_score(&self) -> f64 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]   --> src/metrics/complexity.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct CyclomaticComplexityMetric {
[INFO] [stdout]    |            -------------------------- field in this struct
[INFO] [stdout] 11 |     /// 翻译器
[INFO] [stdout] 12 |     translator: Translator,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/function_length.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct FunctionLengthMetric {
[INFO] [stdout]   |            -------------------- field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/comment_ratio.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct CommentRatioMetric {
[INFO] [stdout]   |            ------------------ field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/error_handling.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct ErrorHandlingMetric {
[INFO] [stdout]   |            ------------------- field in this struct
[INFO] [stdout] 7 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/naming.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct NamingConventionMetric {
[INFO] [stdout]   |            ---------------------- field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/duplication.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct CodeDuplicationMetric {
[INFO] [stdout]   |            --------------------- field in this struct
[INFO] [stdout] 7 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/structure.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct StructureAnalysisMetric {
[INFO] [stdout]   |            ----------------------- field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `line_count` is never used
[INFO] [stdout]   --> src/parser/base.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Function {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 59 |     pub fn line_count(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `supported_languages` is never used
[INFO] [stdout]    --> src/parser/base.rs:103:8
[INFO] [stdout]     |
[INFO] [stdout]  84 | pub trait Parser {
[INFO] [stdout]     |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 103 |     fn supported_languages(&self) -> Vec<LanguageType>;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `script_regex` and `style_regex` are never read
[INFO] [stdout]   --> src/parser/html.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct HTMLParser {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 12 |     /// 脚本标签正则
[INFO] [stdout] 13 |     script_regex: Regex,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 14 |     /// 样式标签正则
[INFO] [stdout] 15 |     style_regex: Regex,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rule_regex` is never read
[INFO] [stdout]   --> src/parser/css.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct CSSParser {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 12 |     /// CSS规则正则
[INFO] [stdout] 13 |     rule_regex: Regex,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `InvalidPath`, `ConfigError`, and `AnalysisError` are never constructed
[INFO] [stdout]   --> src/error.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum AppError {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 22 |     InvalidPath(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     ConfigError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     AnalysisError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.29s
[INFO] running `Command { std: "docker" "inspect" "b0d5b566209fb35eb188ee442eb8ef89e0c3c44938ace6c54c2d3f5835c24f71", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b0d5b566209fb35eb188ee442eb8ef89e0c3c44938ace6c54c2d3f5835c24f71", kill_on_drop: false }`
[INFO] [stdout] b0d5b566209fb35eb188ee442eb8ef89e0c3c44938ace6c54c2d3f5835c24f71
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 590711c42ab3e17a2b60d5ba3b8ecd9421be382bd393de99ead56a123a46de64
[INFO] running `Command { std: "docker" "start" "-a" "590711c42ab3e17a2b60d5ba3b8ecd9421be382bd393de99ead56a123a46de64", kill_on_drop: false }`
[INFO] [stderr]    Compiling fuck-shit-code v1.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: method `analyze_with_excludes` is never used
[INFO] [stdout]    --> src/analyzer/analyzer.rs:112:12
[INFO] [stdout]     |
[INFO] [stdout]  34 | impl CodeAnalyzer {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn analyze_with_excludes(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `display_name` is never used
[INFO] [stdout]   --> src/common/language.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | impl LanguageType {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn display_name(&self) -> &str {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `supported_extensions` is never used
[INFO] [stdout]    --> src/common/language.rs:143:12
[INFO] [stdout]     |
[INFO] [stdout] 104 | impl LanguageDetector {
[INFO] [stdout]     | --------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 143 |     pub fn supported_extensions() -> Vec<&'static str> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_language` is never used
[INFO] [stdout]    --> src/i18n/mod.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout]  30 | impl Translator {
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn set_language(&mut self, language: Language) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `create_core_metrics` is never used
[INFO] [stdout]   --> src/metrics/mod.rs:65:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl MetricFactory {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn create_core_metrics(&self) -> Vec<Box<dyn Metric>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `weighted_score` is never used
[INFO] [stdout]   --> src/metrics/base.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl MetricResult {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn weighted_score(&self) -> f64 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]   --> src/metrics/complexity.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct CyclomaticComplexityMetric {
[INFO] [stdout]    |            -------------------------- field in this struct
[INFO] [stdout] 11 |     /// 翻译器
[INFO] [stdout] 12 |     translator: Translator,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/function_length.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct FunctionLengthMetric {
[INFO] [stdout]   |            -------------------- field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/comment_ratio.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct CommentRatioMetric {
[INFO] [stdout]   |            ------------------ field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/error_handling.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct ErrorHandlingMetric {
[INFO] [stdout]   |            ------------------- field in this struct
[INFO] [stdout] 7 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/naming.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct NamingConventionMetric {
[INFO] [stdout]   |            ---------------------- field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/duplication.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct CodeDuplicationMetric {
[INFO] [stdout]   |            --------------------- field in this struct
[INFO] [stdout] 7 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `translator` is never read
[INFO] [stdout]  --> src/metrics/structure.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct StructureAnalysisMetric {
[INFO] [stdout]   |            ----------------------- field in this struct
[INFO] [stdout] 6 |     translator: Translator,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `line_count` is never used
[INFO] [stdout]   --> src/parser/base.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Function {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 59 |     pub fn line_count(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `supported_languages` is never used
[INFO] [stdout]    --> src/parser/base.rs:103:8
[INFO] [stdout]     |
[INFO] [stdout]  84 | pub trait Parser {
[INFO] [stdout]     |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 103 |     fn supported_languages(&self) -> Vec<LanguageType>;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `script_regex` and `style_regex` are never read
[INFO] [stdout]   --> src/parser/html.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct HTMLParser {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 12 |     /// 脚本标签正则
[INFO] [stdout] 13 |     script_regex: Regex,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 14 |     /// 样式标签正则
[INFO] [stdout] 15 |     style_regex: Regex,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rule_regex` is never read
[INFO] [stdout]   --> src/parser/css.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct CSSParser {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 12 |     /// CSS规则正则
[INFO] [stdout] 13 |     rule_regex: Regex,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `InvalidPath`, `ConfigError`, and `AnalysisError` are never constructed
[INFO] [stdout]   --> src/error.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum AppError {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 22 |     InvalidPath(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     ConfigError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     AnalysisError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.87s
[INFO] running `Command { std: "docker" "inspect" "590711c42ab3e17a2b60d5ba3b8ecd9421be382bd393de99ead56a123a46de64", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "590711c42ab3e17a2b60d5ba3b8ecd9421be382bd393de99ead56a123a46de64", kill_on_drop: false }`
[INFO] [stdout] 590711c42ab3e17a2b60d5ba3b8ecd9421be382bd393de99ead56a123a46de64
