html_report

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2022 Dave Shanley / Quobix SPDX-License-Identifier: MIT

Index

Constants

View Source
const MaxViolations = 100

MaxViolations the maximum number of violations the report will render per broken rule. TODO: make this configurable

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLReport

type HTMLReport interface {
	GenerateReport(testMode bool, version string) []byte
}

func NewHTMLReport

func NewHTMLReport(
	index *index.SpecIndex,
	info *datamodel.SpecInfo,
	results *model.RuleResultSet,
	stats *reports.ReportStatistics,
	disableTimestamp bool) HTMLReport

type ReportData

type ReportData struct {
	BundledJS        string                    `json:"bundledJS"`
	HydrateJS        string                    `json:"hydrateJS"`
	ShoelaceJS       string                    `json:"shoelaceJS"`
	ReportCSS        string                    `json:"reportCSS"`
	Statistics       *reports.ReportStatistics `json:"reportStatistics"`
	TestMode         bool                      `json:"test"`
	RuleCategories   []*model.RuleCategory     `json:"ruleCategories"`
	RuleResults      *model.RuleResultSet      `json:"ruleResults"`
	MaxViolations    int                       `json:"maxViolations"`
	Generated        time.Time                 `json:"generated"`
	Version          string                    `json:"version"`
	DisableTimestamp bool                      `json:"-"`
	SpecString       []string                  `json:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL