builder

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Path string
}

Deps builds dependencies.

func (*Deps) Write

func (b *Deps) Write(writer io.Writer) (err error)

Write deps section.

type Issues

type Issues struct {
	Path string
	// contains filtered or unexported fields
}

Issues builds issues and facts.

func (*Issues) Facts

func (b *Issues) Facts() (facts api.Map)

Facts builds facts.

func (*Issues) RuleError added in v0.5.0

func (b *Issues) RuleError() (r *RuleError)

RuleError returns the rule error.

func (*Issues) Tags

func (b *Issues) Tags() (tags []string)

Tags builds tags.

func (*Issues) Write

func (b *Issues) Write(writer io.Writer) (err error)

Write issues section.

type Manifest added in v0.6.0

type Manifest struct {
	Analysis api.Analysis
	Issues   *Issues
	Deps     *Deps
	Path     string
}

Manifest file.

func (*Manifest) Write added in v0.6.0

func (m *Manifest) Write() (err error)

Write manifest file.

type RuleError

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

RuleError reported by the analyzer.

func (*RuleError) Append

func (e *RuleError) Append(ruleset output.RuleSet)

func (*RuleError) Error

func (e *RuleError) Error() (s string)

func (*RuleError) Is

func (e *RuleError) Is(err error) (matched bool)

func (*RuleError) NotEmpty

func (e *RuleError) NotEmpty() (b bool)

func (*RuleError) Report

func (e *RuleError) Report()

Jump to

Keyboard shortcuts

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