golangci

package
v0.0.0-...-f292767 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package golangci implements output to .golangci.yml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler interface {
	CompileGolangci(*Output) error
}

Compiler is implemented by project blocks which support Dockerfile generate.

type Output

type Output struct {
	output.FileAdapter
	// contains filtered or unexported fields
}

Output implements .golangci.yml generation.

func NewOutput

func NewOutput() *Output

NewOutput creates new Makefile output.

func (*Output) Compile

func (o *Output) Compile(compiler Compiler) error

Compile implements output.TypedWriter interface.

func (*Output) Enable

func (o *Output) Enable()

Enable should be called to enable config generation.

func (*Output) Filenames

func (o *Output) Filenames() []string

Filenames implements output.FileWriter interface.

func (*Output) GenerateFile

func (o *Output) GenerateFile(_ string, w io.Writer) error

GenerateFile implements output.FileWriter interface.

func (*Output) NewFile

func (o *Output) NewFile(path string)

NewFile sets project path.

Jump to

Keyboard shortcuts

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