pub struct ReviewConfig {
pub max_comments: usize,
pub min_confidence: f64,
pub severity_filter: Vec<Severity>,
pub skip_patterns: Vec<String>,
pub skip_extensions: Vec<String>,
pub max_diff_tokens: usize,
pub include_suggestions: bool,
pub cross_file: bool,
}Expand description
Review behavior configuration.
§Examples
use argus_core::ReviewConfig;
let config = ReviewConfig::default();
assert_eq!(config.min_confidence, 90.0);
assert_eq!(config.max_comments, 5);
assert!(!config.include_suggestions);
assert_eq!(config.max_diff_tokens, 4000);
assert!(config.cross_file);Fields§
§max_comments: usizeMaximum number of comments per review (default: 5).
min_confidence: f64Minimum LLM confidence to include a comment (default: 90.0).
severity_filter: Vec<Severity>Only show comments at these severity levels.
skip_patterns: Vec<String>Additional glob patterns to skip before sending to LLM.
skip_extensions: Vec<String>Additional file extensions to skip before sending to LLM.
max_diff_tokens: usizeToken threshold for splitting diff into per-file LLM calls (default: 4000).
include_suggestions: boolInclude suggestion-level comments (default: false).
cross_file: boolGroup related files for cross-file analysis when splitting diffs (default: true).
Trait Implementations§
Source§impl Clone for ReviewConfig
impl Clone for ReviewConfig
Source§fn clone(&self) -> ReviewConfig
fn clone(&self) -> ReviewConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReviewConfig
impl Debug for ReviewConfig
Source§impl Default for ReviewConfig
impl Default for ReviewConfig
Source§impl<'de> Deserialize<'de> for ReviewConfig
impl<'de> Deserialize<'de> for ReviewConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReviewConfig
impl RefUnwindSafe for ReviewConfig
impl Send for ReviewConfig
impl Sync for ReviewConfig
impl Unpin for ReviewConfig
impl UnsafeUnpin for ReviewConfig
impl UnwindSafe for ReviewConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more