report

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Warnings []Warning    `json:",omitempty"`
	Linters  []LinterData `json:",omitempty"`
	Error    string       `json:",omitempty"`
}

func (*Data) AddLinter

func (d *Data) AddLinter(name string, enabled, enabledByDefault bool)

type LinterData

type LinterData struct {
	Name             string
	Enabled          bool `json:",omitempty"`
	EnabledByDefault bool `json:",omitempty"`
}

type LogWrapper

type LogWrapper struct {
	// contains filtered or unexported fields
}

func NewLogWrapper

func NewLogWrapper(log logutils.Log, reportData *Data) *LogWrapper

func (LogWrapper) Child

func (lw LogWrapper) Child(name string) logutils.Log

func (LogWrapper) Errorf

func (lw LogWrapper) Errorf(format string, args ...any)

func (LogWrapper) Fatalf

func (lw LogWrapper) Fatalf(format string, args ...any)

func (LogWrapper) GoString

func (lw LogWrapper) GoString() string

func (LogWrapper) Infof

func (lw LogWrapper) Infof(format string, args ...any)

func (LogWrapper) Panicf

func (lw LogWrapper) Panicf(format string, args ...any)

func (LogWrapper) SetLevel

func (lw LogWrapper) SetLevel(level logutils.LogLevel)

func (LogWrapper) Warnf

func (lw LogWrapper) Warnf(format string, args ...any)

type Warning

type Warning struct {
	Tag  string `json:",omitempty"`
	Text string
}

Jump to

Keyboard shortcuts

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