use crate::summary::FallbackCause;
pub(crate) const DEFAULT_BYTE_LIMIT: usize = 1_000_000;
pub(crate) const DEFAULT_GRAPH_LIMIT: usize = 3_000_000;
pub(crate) const DEFAULT_PARSE_ERROR_LIMIT: usize = 0;
#[derive(Debug, Clone)]
pub struct DiffOptions {
pub graph_limit: usize,
pub byte_limit: usize,
pub parse_error_limit: usize,
pub ignore_comments: bool,
pub by_line: Option<FallbackCause>,
pub syntax: bool,
}
impl Default for DiffOptions {
fn default() -> Self {
Self {
graph_limit: DEFAULT_GRAPH_LIMIT,
byte_limit: DEFAULT_BYTE_LIMIT,
parse_error_limit: DEFAULT_PARSE_ERROR_LIMIT,
ignore_comments: false,
by_line: None,
syntax: false,
}
}
}