powershell

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PowerShellRuleCode enables PowerShell script analysis for Dockerfile snippets.
	PowerShellRuleCode = rules.PowerShellRulePrefix + "PowerShell"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

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

Rule runs PowerShell script analysis on PowerShell snippets in Dockerfile instructions.

func NewRule

func NewRule() *Rule

func (*Rule) Check

func (r *Rule) Check(input rules.LintInput) []rules.Violation

func (*Rule) CheckContext

func (r *Rule) CheckContext(ctx context.Context, input rules.LintInput) []rules.Violation

func (*Rule) Metadata

func (r *Rule) Metadata() rules.RuleMetadata

Jump to

Keyboard shortcuts

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