analyzer

package module
v0.0.0-...-dbca48e Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 6 Imported by: 0

README

Custom analyzer

This package implements a basic analyzer for checking various common workflow error conditions.

In your own .golangci.yaml configuration file, you can enable it like this:

version: "2"

linters:
  enable:
    - goworkflows

  settings:
    custom:
      goworkflows:
        type: module
        original-url: github.com/cschleiden/go-workflows/analyzer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(settings any) (register.LinterPlugin, error)

Types

type GoWorkflowsPlugin

type GoWorkflowsPlugin struct {
	Settings Settings
}

func (*GoWorkflowsPlugin) BuildAnalyzers

func (w *GoWorkflowsPlugin) BuildAnalyzers() ([]*analysis.Analyzer, error)

func (*GoWorkflowsPlugin) GetLoadMode

func (w *GoWorkflowsPlugin) GetLoadMode() string

type Settings

type Settings struct {
	CheckPrivateReturnValues bool `json:"checkprivatereturnvalues"`
}

Jump to

Keyboard shortcuts

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