{"record":{"id":"478106af266dc773","repo":"pbakaus/impeccable","slug":"note-gpt-and-gemini-are-deprecated-and-ignore","errorCode":null,"errorMessage":"Note: --gpt and --gemini are deprecated and ignored. Generated-UI tells now run by default.\n","messagePattern":"Note: --gpt and --gemini are deprecated and ignored\\. Generated-UI tells now run by default\\.\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"crates/detect/src/cli.rs","lineNumber":418,"sourceCode":"        .map(|a| match a.as_str() {\n            \"-json\" => \"--json\".to_string(),\n            \"-fast\" => \"--fast\".to_string(),\n            _ => a.clone(),\n        })\n        .collect();\n    if args.first().map(String::as_str) == Some(\"detect\") {\n        args.remove(0);\n    }\n    let has = |args: &[String], flag: &str| args.iter().any(|a| a == flag);\n    let json_mode = has(&args, \"--json\");\n    let quiet_mode = has(&args, \"--quiet\");\n    let help_mode = has(&args, \"--help\");\n    let no_advisory = has(&args, \"--no-advisory\");\n    if has(&args, \"--fast\") {\n        io.err(\"Note: --fast is deprecated and ignored. The full scan is fast now and runs every rule.\\n\");\n    }\n    if has(&args, \"--gpt\") || has(&args, \"--gemini\") {\n        io.err(\"Note: --gpt and --gemini are deprecated and ignored. Generated-UI tells now run by default.\\n\");\n    }\n    let config_enabled = !has(&args, \"--no-config\");\n    let cwd = io.cwd.to_string_lossy().into_owned();\n    let detection_config = if config_enabled {\n        read_detection_config(&cwd)\n    } else {\n        DetectionConfig::raw()\n    };\n    let scopes_valid = rule_scopes().join(\", \");\n    let mut scopes: Vec<String> = Vec::new();\n    let mut i = 0;\n    while i < args.len() {\n        let inline = args[i].starts_with(\"--scope=\");\n        if args[i] != \"--scope\" && !inline {\n            i += 1;\n            continue;\n        }\n        let value: Option<String> = if inline {","sourceCodeStart":400,"sourceCodeEnd":436,"githubUrl":"https://github.com/pbakaus/impeccable/blob/2bc2879276c1f321a53c4ca99d3371e411329b52/crates/detect/src/cli.rs#L400-L436","documentation":"The detect CLI warns on stderr that `--gpt` and `--gemini` are deprecated and ignored: generated-UI antipattern detection now runs by default for every scan, so the old opt-in model flags have no effect. The scan proceeds normally afterwards.","triggerScenarios":"Passing `--gpt` or `--gemini` on the `impeccable detect` command line, matched by `has(&args, \"--gpt\") || has(&args, \"--gemini\")`.","commonSituations":"Scripts written when generated-UI rules were opt-in via provider flags; docs or blog posts referencing the old flags; CI pipelines that still pass `--gpt --gemini` expecting extra rules to be toggled.","solutions":["Remove `--gpt` / `--gemini` from the command; generated-UI tells run automatically now.","Update scripts, Makefiles, and CI YAML that still pass these flags.","Nothing needs to be enabled — no replacement flag exists; rules are always on."],"exampleFix":"// before\nimpeccable detect dist/ --gpt --gemini\n// after\nimpeccable detect dist/","handlingStrategy":"validation","validationCode":"const dropped = [\"--gpt\", \"--gemini\"];\nconst args = process.argv.slice(2).filter(a => !dropped.includes(a));","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Remove model-provider flags from scripts — generated-UI rules are always on now","Audit CI YAML for legacy flags after each upgrade","Diff recorded scan commands against current --help output"],"tags":["cli","deprecation","flags"],"backgroundTag":"deprecated-api-usage","analyzedSha":"2bc2879276c1f321a53c4ca99d3371e411329b52","analyzedAt":"2026-09-08T04:51:14.109Z","contentChangedAt":"2026-09-08T04:51:14.109Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}