generator

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package generator provides golangci-lint integration for devgen. It runs golangci-lint and converts its output to devgen diagnostics.

Index

Constants

View Source
const ToolName = "golangcilint"

ToolName is the name of this tool.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator integrates golangci-lint with devgen.

func New

func New() *Generator

New creates a new Generator.

func (*Generator) Config

func (g *Generator) Config() genkit.ToolConfig

Config returns the tool configuration. This tool has no annotations since it only runs golangci-lint.

func (*Generator) Name

func (g *Generator) Name() string

Name returns the tool name.

func (*Generator) Run

func (g *Generator) Run(_ *genkit.Generator, _ *genkit.Logger) error

Run is a no-op for this tool since it only provides validation.

func (*Generator) Validate

func (g *Generator) Validate(gen *genkit.Generator, log *genkit.Logger) []genkit.Diagnostic

Validate implements genkit.ValidatableTool. It runs golangci-lint and returns diagnostics.

Jump to

Keyboard shortcuts

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