1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! LLM Config Manager Development Tools
//!
//! This crate provides enterprise-grade security scanning and development tools
//! for the LLM Config Manager project.
//!
//! # Features
//!
//! - **Security Scanning**: Comprehensive code security analysis
//! - Clippy security lints integration
//! - Unsafe code detection
//! - Secret scanning
//! - SQL injection vulnerability detection
//!
//! - **Report Generation**: Multiple output formats
//! - JSON (machine-readable)
//! - YAML (human-readable structured)
//! - Markdown (documentation)
//! - SARIF (GitHub Security integration)
//!
//! # Usage
//!
//! ## As a Library
//!
//! ```rust,no_run
//! use llm_config_devtools::security::{SecurityScanner, ScanConfig};
//! use llm_config_devtools::report::{generate_report, OutputFormat};
//! use std::path::PathBuf;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = ScanConfig {
//! project_root: PathBuf::from("."),
//! scan_clippy: true,
//! scan_unsafe: true,
//! scan_secrets: true,
//! scan_sql: true,
//! max_workers: None,
//! };
//!
//! let scanner = SecurityScanner::new(config);
//! let report = scanner.scan()?;
//!
//! let markdown = generate_report(&report, OutputFormat::Markdown)?;
//! println!("{}", markdown);
//! # Ok(())
//! # }
//! ```
//!
//! ## As a CLI Tool
//!
//! ```bash
//! # Run security scan
//! llm-security-scan --output report.md --format markdown
//!
//! # Generate SARIF for GitHub
//! llm-security-scan --output results.sarif --format sarif
//! ```
pub use ;