Skip to main content

cc_audit/
lib.rs

1pub mod baseline;
2pub mod cli;
3pub mod client;
4pub mod config;
5pub mod cve_db;
6pub mod deobfuscation;
7pub mod error;
8pub mod fix;
9pub mod handlers;
10pub mod hooks;
11pub mod ignore;
12pub mod malware_db;
13pub mod mcp_server;
14pub mod profile;
15pub mod remote;
16pub mod reporter;
17pub mod rules;
18pub mod run;
19pub mod scanner;
20pub mod scoring;
21pub mod suppression;
22pub mod types;
23pub mod watch;
24
25#[cfg(test)]
26pub mod test_utils;
27
28pub use baseline::{Baseline, DriftEntry, DriftReport};
29pub use cli::{BadgeFormat, Cli, OutputFormat, ScanType};
30pub use client::{
31    ClientType, DetectedClient, detect_client, detect_installed_clients, list_installed_clients,
32};
33pub use config::{Config, ConfigError, TextFilesConfig, WatchConfig};
34pub use cve_db::{CveDatabase, CveDbError, CveEntry};
35pub use deobfuscation::{DecodedContent, Deobfuscator};
36pub use error::{AuditError, Result};
37pub use fix::{AutoFixer, Fix, FixResult};
38pub use hooks::{HookError, HookInstaller};
39pub use ignore::IgnoreFilter;
40pub use malware_db::{MalwareDatabase, MalwareDbError};
41pub use mcp_server::McpServer;
42pub use profile::{Profile, profile_from_cli};
43pub use remote::{ClonedRepo, GitCloner, RemoteError, parse_github_url};
44pub use reporter::{
45    Reporter, html::HtmlReporter, json::JsonReporter, markdown::MarkdownReporter,
46    sarif::SarifReporter, terminal::TerminalReporter,
47};
48pub use rules::{
49    Confidence, CustomRuleError, CustomRuleLoader, DynamicRule, Finding, RuleEngine, RuleSeverity,
50    ScanResult, Severity, Summary,
51};
52pub use run::{
53    ScanMode, WatchModeResult, format_result, is_text_file, is_text_file_with_config, run_scan,
54    scan_path_with_cve_db, scan_path_with_malware_db, setup_watch_mode, watch_iteration,
55};
56pub use scanner::{
57    CommandScanner, DependencyScanner, DirectoryWalker, DockerScanner, HookScanner, McpScanner,
58    PluginScanner, RulesDirScanner, ScanError, Scanner, SkillScanner, SubagentScanner, WalkConfig,
59};
60pub use scoring::{CategoryScore, RiskLevel, RiskScore, SeverityBreakdown};
61pub use types::{AuthToken, FileHash, GitRef, PathValidationError, RuleId, ScanTarget};
62pub use watch::FileWatcher;