Output format
Specifies the output format for generated reports.Available formats:
md- Markdown (default)json- JSON structured datatxt- Plain texthtml- HTML web-based report
-fFormat details
Markdown (md)
Markdown (md)
Human-readable format with:Default output file:
- Structured headings and sections
- Code snippets with syntax highlighting
- Issue severity indicators
- File paths with line numbers
- Suggestions for fixing issues
retina-report.mdJSON (json)
JSON (json)
Machine-readable structured data with:Default output file:
- Complete issue details
- File paths and line numbers
- Categories and severity levels
- Stack traces and metadata
- Summary statistics
retina-report.jsonPlain text (txt)
Plain text (txt)
Simple text format with:Default output file:
- Linear issue listing
- File paths and line numbers
- Basic formatting
- No special characters
retina-report.txtThe
text alias also works: retina run -f textHTML (html)
HTML (html)
Interactive web-based report with:Default output file:
- Clickable navigation
- Syntax-highlighted code snippets
- Filterable issue list
- Summary dashboard
- Responsive design
retina-report.htmlThe
web alias also works: retina run -f webOutput destination
Specifies the output file path for the generated report.If not specified, defaults to
retina-report.<format> in the scanned plugin directory.Short form: -oOutput path behavior
- Relative paths are resolved from the current working directory
- Absolute paths are used as-is
- Parent directories are created automatically if they don’t exist
- Existing files are overwritten without confirmation
Examples
When using
--console-only, the --output option is ignored since no file is generated.Console output
Outputs analysis results to the console only without generating a report file.Short form:
-cConsole-only behavior
- Summary statistics are displayed in the terminal
- Issue count and affected file count are shown
- No report file is generated
--outputoption is ignored- Exit code still indicates success (0) or failure (1)
Use cases
CI/CD pipelines
CI/CD pipelines
Quick checks without generating files:Check exit code for pass/fail:
Quick development checks
Quick development checks
Fast feedback during development:
Disk space constraints
Disk space constraints
Avoid creating report files in environments with limited storage:
Report simplification
Generates a simplified report without code snippets and fix suggestions.Simple reports include only:
- File path
- Line number
- Issue category
- Severity level
- Error message
-sSimple vs. standard reports
Standard report includes:- File path and line number
- Issue category and severity
- Error message
- Code snippet showing the problematic code
- Contextual information
- Suggestions for fixing the issue
- Related documentation links
- File path and line number
- Issue category and severity
- Error message only
Use cases for simple reports
Large codebases
Large codebases
Reduce report file size for projects with many issues:
Automated parsing
Automated parsing
Easier to parse programmatically:
Overview generation
Overview generation
Quick high-level overview without details:
Configuration file
Inretina.yml:
CLI
--simple flag overrides the simpleReport configuration file setting.Progress output
Disables progress indicators during analysis.
Progress output includes:
- File scanning progress
- Analyzer execution status
- Issue detection count (live updates)
- Completion percentage
When to disable progress
CI/CD environments
CI/CD environments
Progress output may clutter logs:
Log file redirection
Log file redirection
Clean output when redirecting to files:
Scripted automation
Scripted automation
Avoid progress characters in automated scripts:
Combined examples
Default behavior
When no output options are specified:- Format: Markdown (
md) - Output:
retina-report.mdin the scanned directory - Progress: Enabled
- Simple: Disabled (full report with code snippets)
- File generation: Enabled (not console-only)
Format extensions
Retina automatically uses the correct file extension based on format:| Format | Extension |
|---|---|
md | .md |
json | .json |
txt | .txt |
html | .html |