How hangga/delvelin works
Core Components
a. Scanner Core (Main Entry Points):
• Delvelin.java and DelvelinScan.java as the central components
• Configuration input handling from both Gradle plugin and library usage paths
b. Detector System:
• Various detectors into categories:
• Security Detectors (SQL Injection, XSS, etc.)
• Thread Safety Detectors (NonThreadSafe, NonAtomic)
• Cryptographic Detectors (WeakCryptographic)
• Code Quality Detectors (Reflection, etc.)
c. OSV Integration:
• OsvDetector and OsvVulnerabilityParser as a separate subsystem
• External communication with OSV.dev API
Supporting Systems
a. Configuration Management:
• Config.java handling various configuration options
• OutputFileFormat and other properties
b. Output Generation:
• HTML template system (from src/main/resources/html)
• JSON and LOG output paths
• Reports.java as the coordinator
c. Utility Services:
• File handling (FileUtil.java)
• Logging system (DelvelinLog.java)
• Source code analysis (SourceSet.java)
Use a layered architecture approach
[Input Layer]
• ↓
[Configuration Layer]
• ↓
[Core Scanner Layer]
• ↓
[Detector Layer]
• ↓
[Output Layer]
The output generation process
Remember to include external dependencies and integration points, particularly the OSV.dev API connection and browser interaction for HTML reports.