Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions crates/inspect-cli/src/commands/review.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use colored::Colorize;
use sem_core::git::types::DiffScope;

use crate::OutputFormat;
use inspect_core::analyze::analyze;
use inspect_core::analyze::{analyze_with_options, AnalyzeOptions};
use inspect_core::llm::{
estimate_entity_input_tokens, AnthropicClient, EntityLlmReview, LlmProvider, LlmReviewOptions,
LlmReviewStatus, LlmVerdict, OpenAIClient,
Expand Down Expand Up @@ -125,7 +125,14 @@ pub async fn run(args: ReviewArgs) {
let scope = parse_scope(&args.target);
let repo = args.repo.canonicalize().unwrap_or(args.repo.clone());

let mut result = match analyze(&repo, scope) {
let options = AnalyzeOptions {
include_dependent_code: true,
include_dependency_code: true,
include_file_context: true,
..AnalyzeOptions::default()
};

let mut result = match analyze_with_options(&repo, scope, &options) {
Ok(r) => r,
Err(e) => {
eprintln!("error: {}", e);
Expand Down
Loading
Loading