Reports
Understanding rnsec's comprehensive reporting capabilities and output formats.
Output Formats
Console
Color-coded terminal output with summary statistics
rnsec scan- ✓Color-coded severity
- ✓Grouped by severity
- ✓File paths and line numbers
HTML
Interactive dashboard with filtering
rnsec scan --html report.html- ✓Dark-themed dashboard
- ✓Severity filtering
- ✓Expandable cards
- ✓Copy-to-clipboard
JSON
Machine-readable format for CI/CD
rnsec scan --json- ✓All metadata
- ✓CI/CD integration
- ✓Pipeline ready
- ✓Exit codes
HTML Report Features
The generated HTML report includes:
Summary Cards
Total findings count with HIGH/MEDIUM/LOW breakdown
Interactive Filtering
Click severity tabs to filter findings
Expandable Cards
Detailed finding information with code snippets
Syntax Highlighting
Color-coded code snippets for readability
Dark Theme
Modern dark theme optimized for readability
Mobile Responsive
Works beautifully on all devices
JSON Report Structure
The JSON report contains structured data perfect for automation:
json
{
"findings": [
{
"ruleId": "ASYNCSTORAGE_SENSITIVE_KEY",
"description": "AsyncStorage storing sensitive key",
"severity": "HIGH",
"filePath": "/Users/dev/myapp/src/auth/AuthService.ts",
"line": 42,
"snippet": "await AsyncStorage.setItem('userToken', token);",
"reason": "AsyncStorage stores data in plaintext...",
"suggestion": "Use encrypted storage like expo-secure-store..."
}
],
"scannedFiles": 342,
"duration": 3456,
"timestamp": "2025-12-16T10:30:00.000Z"
}Report Best Practices
- • Save HTML reports for security reviews and documentation
- • Use JSON output for automated CI/CD pipelines
- • Share reports with team for security awareness
- • Track progress by comparing reports over time
© 2025 rnsec • Open source security