command

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Checkmake = CheckmakeCommand{
	BaseCommand: BaseCommand{
		Binary:     "checkmake",
		ConfigFile: ptr("checkmake.ini"),
	},
}

CLI executor for [checkmake](https://github.com/checkmake/checkmake/).

View Source
var Chktex = ChktexCommand{
	BaseCommand: BaseCommand{
		Binary:     "chktex",
		ConfigFile: ptr("chktexrc"),
	},
}

CLI executor for [ChkTeX](https://www.nongnu.org/chktex/).

View Source
var Csvlint = CsvlintCommand{
	BaseCommand: BaseCommand{
		Binary:     "csvlint",
		ConfigFile: nil,
	},
}

CLI executor for csvlint(https://github.com/Clever/csvlint/).

View Source
var Gomoddirectives = GomoddirectivesCommand{
	BaseCommand: BaseCommand{
		Binary:     "gomoddirectives",
		ConfigFile: nil,
	},
}

CLI executor for gomoddirectives(https://github.com/ldez/gomoddirectives/).

View Source
var Hadolint = HadolintCommand{
	BaseCommand: BaseCommand{
		Binary:     "hadolint",
		ConfigFile: ptr("hadolint.yaml"),
	},
}

CLI executor for Hadolint(https://github.com/hadolint/hadolint/).

View Source
var Propertieslint = PropertieslintCommand{
	BaseCommand: BaseCommand{
		Binary:     "propertieslint",
		ConfigFile: ptr("propertieslint.json"),
	},
}

CLI executor for [propertieslint](https://hanggrian.github.io/propertieslint/).

View Source
var Protolint = ProtolintCommand{
	BaseCommand: BaseCommand{
		Binary:     "protolint",
		ConfigFile: ptr("protolint.yaml"),
	},
}

CLI executor for protolint(https://github.com/yoheimuta/protolint/).

View Source
var ShellCheck = ShellCheckCommand{
	BaseCommand: BaseCommand{
		Binary:     "shellcheck",
		ConfigFile: nil,
	},
}

CLI executor for ShellCheck(https://www.shellcheck.net/).

View Source
var Tflint = TflintCommand{
	BaseCommand: BaseCommand{
		Binary:     "tflint",
		ConfigFile: ptr("tflint.hcl"),
	},
}

CLI executor for [tflint](https://github.com/terraform-linters/tflint/).

View Source
var Xmllint = XmllintCommand{
	BaseCommand: BaseCommand{
		Binary:     "xmllint",
		ConfigFile: nil,
	},
}

CLI executor for [xmllint](https://gnome.pages.gitlab.gnome.org/libxml2/xmllint.html).

Functions

This section is empty.

Types

type BaseCommand

type BaseCommand struct {
	Binary     string
	ConfigFile *string
}

func (*BaseCommand) Execute

func (c *BaseCommand) Execute(l Linter, quiet bool, targetPaths []string) int

func (*BaseCommand) GetArguments

func (c *BaseCommand) GetArguments(quiet bool, targetPaths []string) []string

func (*BaseCommand) GetBinary

func (c *BaseCommand) GetBinary() string

func (*BaseCommand) GetConfigFile

func (c *BaseCommand) GetConfigFile() string

func (*BaseCommand) IsAvailable

func (c *BaseCommand) IsAvailable() bool

type CheckmakeCommand

type CheckmakeCommand struct {
	BaseCommand
}

func (*CheckmakeCommand) GetArguments

func (c *CheckmakeCommand) GetArguments(_ bool, targetPaths []string) []string

type ChktexCommand

type ChktexCommand struct {
	BaseCommand
}

func (*ChktexCommand) GetArguments

func (c *ChktexCommand) GetArguments(quiet bool, targetPaths []string) []string

type CsvlintCommand

type CsvlintCommand struct {
	BaseCommand
}

func (*CsvlintCommand) Execute

func (c *CsvlintCommand) Execute(_ Linter, _ bool, targetPaths []string) int

func (*CsvlintCommand) IsAvailable

func (c *CsvlintCommand) IsAvailable() bool

type GomoddirectivesCommand

type GomoddirectivesCommand struct {
	BaseCommand
}

func (*GomoddirectivesCommand) Execute

func (c *GomoddirectivesCommand) Execute(_ Linter, _ bool, targetPaths []string) int

func (*GomoddirectivesCommand) IsAvailable

func (c *GomoddirectivesCommand) IsAvailable() bool

type HadolintCommand

type HadolintCommand struct {
	BaseCommand
}

func (*HadolintCommand) GetArguments

func (c *HadolintCommand) GetArguments(quiet bool, targetPaths []string) []string

type Linter

type Linter interface {
	IsAvailable() bool
	Execute(l Linter, quiet bool, targetPaths []string) int
	GetConfigFile() string
	GetBinary() string
	GetArguments(quiet bool, targetPaths []string) []string
}

type PropertieslintCommand

type PropertieslintCommand struct {
	BaseCommand
}

func (*PropertieslintCommand) Execute

func (c *PropertieslintCommand) Execute(_ Linter, _ bool, targetPaths []string) int

func (*PropertieslintCommand) IsAvailable

func (c *PropertieslintCommand) IsAvailable() bool

type ProtolintCommand

type ProtolintCommand struct {
	BaseCommand
}

func (*ProtolintCommand) Execute

func (c *ProtolintCommand) Execute(_ Linter, _ bool, targetPaths []string) int

func (*ProtolintCommand) IsAvailable

func (c *ProtolintCommand) IsAvailable() bool

type ShellCheckCommand

type ShellCheckCommand struct {
	BaseCommand
}

type TflintCommand

type TflintCommand struct {
	BaseCommand
}

func (*TflintCommand) GetArguments

func (c *TflintCommand) GetArguments(_ bool, targetPaths []string) []string

type XmllintCommand

type XmllintCommand struct {
	BaseCommand
}

func (*XmllintCommand) GetArguments

func (c *XmllintCommand) GetArguments(_ bool, targetPaths []string) []string

Jump to

Keyboard shortcuts

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