#![cfg_attr(coverage_nightly, coverage(off))]
#[cfg(feature = "go-ast")]
use crate::services::context::AstItem;
#[cfg(feature = "go-ast")]
use std::path::{Path, PathBuf};
#[cfg(feature = "go-ast")]
pub struct GoAstVisitor {
items: Vec<AstItem>,
_file_path: PathBuf,
package_name: String,
_current_type: Vec<String>,
}
#[cfg(feature = "go-ast")]
pub struct GoComplexityAnalyzer {
cyclomatic_complexity: u32,
cognitive_complexity: u32,
}
#[cfg(feature = "go-ast")]
impl Default for GoComplexityAnalyzer {
fn default() -> Self {
Self::new()
}
}
include!("go_analysis.rs");
include!("go_tests.rs");