pub struct ReportingConfig {
pub report_title: String,
pub output_formats: Vec<String>,
pub include_summary_charts: bool,
pub include_skipped_files_section: bool,
pub include_warnings_section: bool,
pub theme: String,
pub company_name: Option<String>,
pub logo_path: Option<PathBuf>,
pub accent_color: Option<String>,
pub report_header_footer: Option<String>,
pub bug_report_url: Option<String>,
pub offline_mode: Option<bool>,
}Fields§
§report_title: String§output_formats: Vec<String>§include_summary_charts: bool§include_skipped_files_section: bool§include_warnings_section: bool§theme: String§company_name: Option<String>Optional company or team name shown in the report header instead of “OxideSLOC”.
logo_path: Option<PathBuf>Path to a PNG/SVG logo file to embed in the report header.
If unset, the default OxideSLOC logo is used.
accent_color: Option<String>CSS hex colour (e.g. #3b82f6) used as the primary accent throughout the report.
Must start with # and be a valid 3- or 6-digit hex colour.
Text printed in a header and footer strip on every page of the HTML/PDF report. Use for company name, project identifier, or scanner identification.
bug_report_url: Option<String>Repository (or issue-tracker) URL that the web UI “Report a Bug” page points at.
When set, it overrides the build-time detected origin and the default upstream repo.
Air-gapped forks set this to their internal GitLab/Bitbucket repo so reports land in
the right place. Also settable via the SLOC_BUG_REPORT_URL environment variable,
which takes precedence over this value.
offline_mode: Option<bool>Force the web UI into (or out of) air-gapped / offline presentation. When set, this
overrides the automatic build-origin heuristic. Some(true) = always treat the host
as air-gapped (the shared footer script repoints “View on GitHub” at this build’s own
repository and renders the author/licence links as plain text, since they point at the
public internet); Some(false) = always treat the host as internet-connected;
None = auto-detect from the build’s origin remote. Also settable via the
SLOC_AIRGAP environment variable, which takes precedence over this value.
Trait Implementations§
Source§impl Clone for ReportingConfig
impl Clone for ReportingConfig
Source§fn clone(&self) -> ReportingConfig
fn clone(&self) -> ReportingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more