reportwriter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFilePermissions = 0644
	ReportFileNameFormat   = "report.%s.json"
	ReportFileNameGlob     = "report.*.json"
)

Variables

This section is empty.

Functions

func GetAllReportsFromJsonFileDirectory

func GetAllReportsFromJsonFileDirectory(directoryPath string) ([]types.Report, error)

func GetLogMessage

func GetLogMessage(level string, migration string, lineNumber int, charPosition int, code string, message string) string

func GetPullRequestCommentString

func GetPullRequestCommentString(reports []types.Report) string

func GetReportFatalityStatus

func GetReportFatalityStatus(reports []types.Report) bool

func GetReportString

func GetReportString(analyzer string, reports []types.Report, verbose bool) string

func GetReportsFromJsonFile

func GetReportsFromJsonFile(reportFileName string) (*[]types.Report, error)

func ListReportJsonFiles

func ListReportJsonFiles(directoryPath string) ([]string, error)

func WriteReportsToJsonFile

func WriteReportsToJsonFile(analyzer string, reports []types.Report, outputDir string) error

func WriteReportsToPullRequest

func WriteReportsToPullRequest(reports []types.Report, githubClient github.GithubClient) error

func WriteReportsToStdout

func WriteReportsToStdout(analyzer string, reports []types.Report, verbose bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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